initial commit

This commit is contained in:
basil 2025-06-14 23:47:44 -04:00
commit d40b69f1f9
Signed by: basil
SSH key fingerprint: SHA256:y04xIFL/yqNaG9ae9Vl95vELtHfApGAIoOGLeVLP/fE
58 changed files with 7919 additions and 0 deletions

22
backend/routes/routes.go Normal file
View file

@ -0,0 +1,22 @@
package routes
import (
"git.red-panda.pet/pandaware/house/backend/router"
)
var routes = map[string]map[string]router.Route{
"GET": map[string]router.Route{},
"POST": map[string]router.Route{},
"PATCH": map[string]router.Route{},
"DELETE": map[string]router.Route{},
"PUT": map[string]router.Route{},
"OPTIONS": map[string]router.Route{},
}
func Register(r router.IRouter) {
for method, patterns := range routes {
for pattern, route := range patterns {
r.Register(method, pattern, route)
}
}
}