refactor: add GetAllAPIs
This commit is contained in:
parent
3e48593675
commit
3dfdd2d2f4
|
@ -48,6 +48,10 @@ func GetAPI(name string) API {
|
||||||
return apiRegistry[name]
|
return apiRegistry[name]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetAllAPIs() map[string]API {
|
||||||
|
return apiRegistry
|
||||||
|
}
|
||||||
|
|
||||||
func GetRouter() *router2.APIRouter {
|
func GetRouter() *router2.APIRouter {
|
||||||
return router
|
return router
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue