api: rename initAPIRouter

This commit is contained in:
Adhityaa Chandrasekar 2018-07-24 12:16:02 +05:30
parent 6701b4e863
commit 14002df4b9
2 changed files with 2 additions and 2 deletions

View File

@ -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
} }

View File

@ -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")