2024-09-12 19:15:38 -04:00
|
|
|
// Copyright 2023 Harran Ali <harran.m@gmail.com>. All rights reserved.
|
|
|
|
// Copyright (c) 2024 Zeni Kim <zenik@smarteching.com>
|
|
|
|
// Use of this source code is governed by MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.smarteching.com/goffee/core"
|
|
|
|
"git.smarteching.com/goffee/cup/handlers"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Register the app routes
|
|
|
|
func registerRoutes() {
|
|
|
|
router := core.ResolveRouter()
|
|
|
|
//#############################
|
|
|
|
//# App Routes #####
|
|
|
|
//#############################
|
|
|
|
|
|
|
|
// Define your routes here...
|
2024-09-15 15:05:45 -04:00
|
|
|
router.Get("/", controllers.WelcomeHome)
|
2024-09-12 19:15:38 -04:00
|
|
|
// Uncomment the lines below to enable authentication
|
2024-09-15 15:05:45 -04:00
|
|
|
// 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)
|
2024-09-12 19:15:38 -04:00
|
|
|
}
|