enhanced output

This commit is contained in:
2023-03-13 18:48:38 +01:00
parent d6792dd6c8
commit e88399d76d
4 changed files with 33 additions and 18 deletions

View File

@@ -56,8 +56,7 @@ func Runserver(conf *cfg.Config, args []string) error {
{
// authenticated routes
api.Post("/file/", auth, func(c *fiber.Ctx) error {
msg, err := FilePut(c, conf, db)
return SendResponse(c, msg, err)
return FilePut(c, conf, db)
})
api.Get("/file/:id/:file", auth, func(c *fiber.Ctx) error {