chore: update grpc router path

This commit is contained in:
Jason Song
2022-11-25 17:48:48 +08:00
parent 48f5c152b9
commit e346581344
4 changed files with 24 additions and 23 deletions
+6 -1
View File
@@ -202,6 +202,11 @@ 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))
}
_ = bots_router.Routes(r)
if setting.Bots.Enabled {
prefix := "/api/bots"
r.Mount(prefix, bots_router.Routes(ctx, prefix))
}
return r
}