diff --git a/handlers/authentication.go b/handlers/authentication.go index 5dcd00c..1cff51f 100644 --- a/handlers/authentication.go +++ b/handlers/authentication.go @@ -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" diff --git a/handlers/home.go b/handlers/home.go index aac2ba8..4d601aa 100644 --- a/handlers/home.go +++ b/handlers/home.go @@ -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" diff --git a/routes.go b/routes.go index fd225d7..c027dd3 100644 --- a/routes.go +++ b/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) }