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
2022-08-13 11:48:14 +08:00
committed by Jason Song
parent 92d15afd18
commit 0e79fc556a
6 changed files with 303 additions and 203 deletions

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
}