mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
api: rename initAPIRouter
This commit is contained in:
@ -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")
|
||||||
|
Reference in New Issue
Block a user