Added gpg api so mirror updates are fully functional from api

This commit is contained in:
Oliver Sauder
2017-05-22 11:54:44 +02:00
committed by Lorenzo Bolla
parent d7ccf95499
commit b0ab8f417d
3 changed files with 128 additions and 0 deletions
+4
View File
@@ -87,6 +87,10 @@ func Router(c *ctx.AptlyContext) http.Handler {
root.DELETE("/mirrors/:name", apiMirrorsDrop)
}
{
root.POST("/gpg/key", apiGPGAddKey)
}
{
root.GET("/files", apiFilesListDirs)
root.POST("/files/:dir", apiFilesUpload)