From 14002df4b996af349bd4f67ed07c159d791d2814 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Tue, 24 Jul 2018 12:16:02 +0530 Subject: [PATCH] api: rename initAPIRouter --- api/router.go | 2 +- api/router_api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")