mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-22 11:08:20 +00:00
First steps towards /files/ API (file upload). #116
This commit is contained in:
1 parent
6b83213cf4
commit
d6c3389d7c
2 files changed
+128
No files matched your search
@@ -27,5 +27,13 @@ func Router(c *ctx.AptlyContext) http.Handler {
|
||||
root.POST("/repos/:name/packages", apiReposPackagesAdd)
|
||||
}
|
||||
|
||||
{
|
||||
root.GET("/files", apiFilesListDirs)
|
||||
root.POST("/files/:dir", apiFilesUpload)
|
||||
root.GET("/files/:dir", apiFilesListFiles)
|
||||
root.DELETE("/files/:dir", apiFilesDeleteDir)
|
||||
root.DELETE("/files/:dir/:name", apiFilesDeleteFile)
|
||||
}
|
||||
|
||||
return router
|
||||
}
|
||||
Reference in new issue
Block a user