initial commit
This commit is contained in:
commit
d40b69f1f9
58 changed files with 7919 additions and 0 deletions
22
backend/routes/routes.go
Normal file
22
backend/routes/routes.go
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue