forked from goffee/cup
start controllers
This commit is contained in:
parent
ed505562ff
commit
17f3156efc
3 changed files with 9 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
// Use of this source code is governed by MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package handlers
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Use of this source code is governed by MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package handlers
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.smarteching.com/goffee/core"
|
||||
|
|
14
routes.go
14
routes.go
|
@ -18,12 +18,12 @@ func registerRoutes() {
|
|||
//#############################
|
||||
|
||||
// Define your routes here...
|
||||
router.Get("/", handlers.WelcomeHome)
|
||||
router.Get("/", controllers.WelcomeHome)
|
||||
// Uncomment the lines below to enable authentication
|
||||
// router.Post("/signup", handlers.Signup)
|
||||
// router.Post("/signin", handlers.Signin)
|
||||
// router.Post("/signout", handlers.Signout)
|
||||
// router.Post("/reset-password", handlers.ResetPasswordRequest)
|
||||
// router.Post("/reset-password/code/:code", handlers.SetNewPassword)
|
||||
// router.Get("/dashboard", handlers.WelcomeToDashboard, middlewares.AuthCheck)
|
||||
// router.Post("/signup", controllers.Signup)
|
||||
// router.Post("/signin", controllers.Signin)
|
||||
// router.Post("/signout", controllers.Signout)
|
||||
// router.Post("/reset-password", controllers.ResetPasswordRequest)
|
||||
// router.Post("/reset-password/code/:code", controllers.SetNewPassword)
|
||||
// router.Get("/dashboard", controllers.WelcomeToDashboard, middlewares.AuthCheck)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue