chore(router): Add grpc and grep-web api

Using connect-go package

https://github.com/bufbuild/connect-go

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu authored and Jason Song committed 2022-11-25 17:48:44 +08:00
1 parent 92d15afd18
commit 0e79fc556a
6 files changed
+303 -203

No files matched your search

+1 -1
View File
@@ -198,6 +198,6 @@ func NormalRoutes(ctx context.Context) *web.Route {
// This implements the OCI API (Note this is not preceded by /api but is instead /v2)
r.Mount("/v2", packages_router.ContainerRoutes(ctx))
}
r.Mount("/api/actions", bots_router.Routes())
bots_router.Routes(r)
return r
}