diff --git a/api/router.go b/api/router.go index 4d85f6d..7ec0da1 100644 --- a/api/router.go +++ b/api/router.go @@ -10,7 +10,7 @@ import ( func routesServe() error { router := mux.NewRouter() - if err := initAPIRouter(router); err != nil { + if err := apiRouterInit(router); err != nil { return err } diff --git a/api/router_api.go b/api/router_api.go index 62d93f9..c9684c0 100644 --- a/api/router_api.go +++ b/api/router_api.go @@ -4,7 +4,7 @@ import ( "github.com/gorilla/mux" ) -func initAPIRouter(router *mux.Router) error { +func apiRouterInit(router *mux.Router) error { router.HandleFunc("/api/owner/new", ownerNewHandler).Methods("POST") router.HandleFunc("/api/owner/confirm-hex", ownerConfirmHexHandler).Methods("GET") router.HandleFunc("/api/owner/login", ownerLoginHandler).Methods("POST")