api: rename initAPIRouter
This commit is contained in:
parent
6701b4e863
commit
14002df4b9
@ -10,7 +10,7 @@ import (
|
|||||||
func routesServe() error {
|
func routesServe() error {
|
||||||
router := mux.NewRouter()
|
router := mux.NewRouter()
|
||||||
|
|
||||||
if err := initAPIRouter(router); err != nil {
|
if err := apiRouterInit(router); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"github.com/gorilla/mux"
|
"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/new", ownerNewHandler).Methods("POST")
|
||||||
router.HandleFunc("/api/owner/confirm-hex", ownerConfirmHexHandler).Methods("GET")
|
router.HandleFunc("/api/owner/confirm-hex", ownerConfirmHexHandler).Methods("GET")
|
||||||
router.HandleFunc("/api/owner/login", ownerLoginHandler).Methods("POST")
|
router.HandleFunc("/api/owner/login", ownerLoginHandler).Methods("POST")
|
||||||
|
Loading…
Reference in New Issue
Block a user