Skip to content

Commit

Permalink
feat: add system pod logs (#1896)
Browse files Browse the repository at this point in the history
Signed-off-by: 逆流而上 <[email protected]>
  • Loading branch information
DokiDoki1103 authored Mar 15, 2024
1 parent 5e466b1 commit 712c08b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/api_routers/version2/v2Routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ func (v2 *V2) Routes() chi.Router {
license := middleware.NewLicense(v2.Cfg)
r.Use(license.Verify)
r.Get("/show", controller.GetManager().Show)
r.Get("/system/pods", controller.GetManager().SystemPodDetail)
r.Get("/system/logs", controller.GetManager().SystemPodLogs)

r.Post("/show", controller.GetManager().Show)
r.Mount("/tenants", v2.tenantRouter())
r.Mount("/cluster", v2.clusterRouter())
Expand Down Expand Up @@ -76,6 +75,8 @@ func (v2 *V2) proxyRoute() chi.Router {
r.Post("/registry/repos", controller.GetManager().GetAllRepo)
r.Post("/registry/tags", controller.GetManager().GetTagsByRepoName)
r.Post("/registry/check", controller.GetManager().CheckRegistry)
r.Get("/system/pods", controller.GetManager().SystemPodDetail)
r.Get("/system/logs", controller.GetManager().SystemPodLogs)
return r
}

Expand Down

0 comments on commit 712c08b

Please sign in to comment.