Skip to content

Commit

Permalink
feature info: added path to home endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
theghostmac committed Jul 4, 2023
1 parent d11c098 commit 1264328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/rest/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (as *APIServer) Transfer(writer http.ResponseWriter, reader *http.Request)
// StartServer starts the API server.
func (as *APIServer) StartServer() {
server := mux.NewRouter()
server.HandleFunc("/", HTTPHandleFunc(nil))
server.HandleFunc("/accounts", HTTPHandleFunc(as.HandleAccounts))
server.HandleFunc("/accounts/{id}", WithJWTAuth(HTTPHandleFunc(as.GetAccountByID)))

Expand Down

0 comments on commit 1264328

Please sign in to comment.