Initial commit

This commit is contained in:
Lizandro Guarnizo
2025-02-06 14:22:29 -05:00
commit 6d8f1bcd6f
452 changed files with 250835 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package routes
import (
"github.com/gofiber/fiber/v2"
"github.com/sujit-baniya/fiber-boilerplate/app"
"github.com/sujit-baniya/fiber-boilerplate/rest/controllers"
"github.com/sujit-baniya/fiber-boilerplate/rest/middlewares"
)
func LandingRoutes(web fiber.Router) {
//web.Get("/", controllers.Landing)
web.Get("/ping", Pong)
web.Get("/all-routes", AllRoutes)
web.Get("/do/verify-email", middlewares.ValidateConfirmToken, controllers.VerifyRegisteredEmail)
}
func Pong(c *fiber.Ctx) error {
return c.SendString("Pong")
}
func AllRoutes(c *fiber.Ctx) error {
return c.JSON(app.Http.Server.Stack())
}