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
|
// Use of this source code is governed by MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package handlers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Use of this source code is governed by MIT-style
|
// Use of this source code is governed by MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package handlers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.smarteching.com/goffee/core"
|
"git.smarteching.com/goffee/core"
|
||||||
|
|
14
routes.go
14
routes.go
|
@ -18,12 +18,12 @@ func registerRoutes() {
|
||||||
//#############################
|
//#############################
|
||||||
|
|
||||||
// Define your routes here...
|
// Define your routes here...
|
||||||
router.Get("/", handlers.WelcomeHome)
|
router.Get("/", controllers.WelcomeHome)
|
||||||
// Uncomment the lines below to enable authentication
|
// Uncomment the lines below to enable authentication
|
||||||
// router.Post("/signup", handlers.Signup)
|
// router.Post("/signup", controllers.Signup)
|
||||||
// router.Post("/signin", handlers.Signin)
|
// router.Post("/signin", controllers.Signin)
|
||||||
// router.Post("/signout", handlers.Signout)
|
// router.Post("/signout", controllers.Signout)
|
||||||
// router.Post("/reset-password", handlers.ResetPasswordRequest)
|
// router.Post("/reset-password", controllers.ResetPasswordRequest)
|
||||||
// router.Post("/reset-password/code/:code", handlers.SetNewPassword)
|
// router.Post("/reset-password/code/:code", controllers.SetNewPassword)
|
||||||
// router.Get("/dashboard", handlers.WelcomeToDashboard, middlewares.AuthCheck)
|
// router.Get("/dashboard", controllers.WelcomeToDashboard, middlewares.AuthCheck)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue