blob: 515f5effd85debf36a6c0a9e32b5b9938f2d3ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package urls
import (
"shrine/enums"
"sync"
"github.com/gofiber/fiber/v2"
)
type registeredRoute struct {
method enums.HTTPMethod
path string
handler fiber.Handler
namespace string
name string
fullPath string
}
type routeRegistry struct {
mutex sync.Mutex
currentNamespace string
routes map[string]registeredRoute
}
|