feat: proxy download image
This commit is contained in:
1 parent
c5d0b8e45b
commit
410a4c0d8d
57 files changed
+10910
-313
No files matched your search
@@ -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