code refactoring, added router, moved download api path
This commit is contained in:
@@ -30,6 +30,8 @@ func ApplyRouter(db *sql.DB, mdb *internal.MemoryDB, mq *internal.MessageQueue)
|
||||
r.Post("/template", h.AddTemplate())
|
||||
r.Get("/template/all", h.GetTemplates())
|
||||
r.Delete("/template/{id}", h.DeleteTemplate())
|
||||
|
||||
r.Get("/tree", h.DirectoryTree())
|
||||
r.Get("/d/{id}", h.DownloadFile())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user