feat: proxy download image
This commit is contained in:
@ -21,5 +21,13 @@ func NewApi(
|
||||
api.Any("/*path", handler.Root(bh, uh, mh))
|
||||
}
|
||||
|
||||
{
|
||||
api := app.Group("/api/repo")
|
||||
api.Get("/settings", handler.RepoSettings)
|
||||
api.Get("/list", handler.RepoList(mh))
|
||||
api.Get("/tag/list", handler.TagList(mh))
|
||||
api.Post("/proxy", handler.ProxyDownloadImage(mh, bh))
|
||||
}
|
||||
|
||||
return app
|
||||
}
|
||||
|
Reference in New Issue
Block a user