From 3dfdd2d2f41fd6b0999e9281190a4dad86f3dc77 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 17 Mar 2024 08:42:53 -0400 Subject: [PATCH] refactor: add GetAllAPIs --- api/registry/registry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/registry/registry.go b/api/registry/registry.go index d8bdd98..5dcd68a 100644 --- a/api/registry/registry.go +++ b/api/registry/registry.go @@ -48,6 +48,10 @@ func GetAPI(name string) API { return apiRegistry[name] } +func GetAllAPIs() map[string]API { + return apiRegistry +} + func GetRouter() *router2.APIRouter { return router }