1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package router import ( "cafe/types" "cafe/utils/urls" "github.com/gofiber/fiber/v2" ) func init() { urls.SetNamespace("") urls.Path(types.GET, "/", func(c *fiber.Ctx) error { return c.SendString("Welcome to Shifoo's Cafe") }, "home") }