summaryrefslogtreecommitdiff
path: root/router/base.go
blob: b178d50e878061e629c9cfe87b18585c1a15eb0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package router

import (
	"cafe/types"
	"cafe/utils/shortcuts"
	"cafe/utils/urls"

	"github.com/gofiber/fiber/v2"
)

func init() {
	urls.SetNamespace("")

	urls.Path(types.GET, "/", func(c *fiber.Ctx) error {
		return shortcuts.Render(c, "pages/home", nil)
	}, "home")
}