Add db cleanup api

This commit is contained in:
Oliver Sauder
2018-06-20 15:04:02 +02:00
committed by Lorenzo Bolla
parent f09a273ad7
commit b4efe6a810
4 changed files with 216 additions and 0 deletions
+3
View File
@@ -124,6 +124,9 @@ func Router(c *ctx.AptlyContext) http.Handler {
{
root.GET("/graph.:ext", apiGraph)
}
{
root.POST("/db/cleanup", apiDbCleanup)
}
{
root.GET("/tasks", apiTasksList)
root.POST("/tasks-clear", apiTasksClear)