summaryrefslogtreecommitdiff
path: root/router/base.go
blob: f453ba21836f94ccd31fffa1ad89fc7895f0390a (plain)
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")
}