feat: proxy download image

This commit is contained in:
loveuer committed 2024-04-20 23:06:09 +08:00
1 parent c5d0b8e45b
commit 410a4c0d8d
57 files changed
+10910 -313

No files matched your search

+8
View File
@@ -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
}