Initial commit
This commit is contained in:
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user