first commits 3
This commit is contained in:
parent
b3fc6d25ca
commit
6dc72d3e14
28 changed files with 1095 additions and 0 deletions
29
routes.go
Normal file
29
routes.go
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// 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...
|
||||
router.Get("/", handlers.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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue