From 17f3156efcae12d4e2ff98291c5fecf247b2bcf8 Mon Sep 17 00:00:00 2001 From: Zeni Kim Date: Sun, 15 Sep 2024 14:05:45 -0500 Subject: [PATCH] start controllers --- handlers/authentication.go | 2 +- handlers/home.go | 2 +- routes.go | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) 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) }