add apt gestion
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
274ea454dd
commit
c4776d81dd
22 changed files with 1465 additions and 163 deletions
|
|
@ -13,7 +13,7 @@ func NewRouter(repoHandler *RepoHandler, cloneHandler *CloneHandler, syncHandler
|
|||
r.Use(middleware.Recoverer)
|
||||
r.Use(middleware.RequestID)
|
||||
|
||||
r.Get("/mirror/{repo_id}/*", proxyHandler.ServeFile)
|
||||
r.Get("/mirror/{repo_ref}/*", proxyHandler.ServeFile)
|
||||
|
||||
r.Get("/health", func(w http.ResponseWriter, r *http.Request) {
|
||||
JSON(w, http.StatusOK, map[string]string{"status": "ok"})
|
||||
|
|
@ -24,6 +24,7 @@ func NewRouter(repoHandler *RepoHandler, cloneHandler *CloneHandler, syncHandler
|
|||
r.Post("/", repoHandler.Create)
|
||||
r.Get("/", repoHandler.List)
|
||||
r.Get("/{id}", repoHandler.Get)
|
||||
r.Patch("/{id}", repoHandler.Update)
|
||||
r.Delete("/{id}", repoHandler.Delete)
|
||||
|
||||
r.Post("/{id}/clone", cloneHandler.StartClone)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue