Added directory structure for routing

This commit is contained in:
2023-07-22 14:19:12 +02:00
parent 2fba1066f8
commit 416eb415a9
7 changed files with 69 additions and 19 deletions

View File

@ -0,0 +1,15 @@
package v1
import (
"github.com/gofiber/fiber/v2"
)
func ConfigureRoutes(router fiber.Router) error {
v1 := router.Group("/v1")
v1.Get("/ping", func(c *fiber.Ctx) error {
return c.SendString("pong")
})
return nil
}