mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 12:40:57 +01:00
added modify command for upload and form
This commit is contained in:
@@ -76,6 +76,11 @@ func Runserver(conf *cfg.Config, args []string) error {
|
||||
return UploadDescribe(c, conf, db)
|
||||
})
|
||||
|
||||
// modify
|
||||
api.Put("/uploads/:id", auth, func(c *fiber.Ctx) error {
|
||||
return UploadModify(c, conf, db)
|
||||
})
|
||||
|
||||
// download w/o expire
|
||||
api.Get("/uploads/:id/file", auth, func(c *fiber.Ctx) error {
|
||||
return UploadFetch(c, conf, db)
|
||||
@@ -101,6 +106,11 @@ func Runserver(conf *cfg.Config, args []string) error {
|
||||
api.Get("/forms/:id", auth, func(c *fiber.Ctx) error {
|
||||
return FormDescribe(c, conf, db)
|
||||
})
|
||||
|
||||
// modify
|
||||
api.Put("/forms/:id", auth, func(c *fiber.Ctx) error {
|
||||
return FormModify(c, conf, db)
|
||||
})
|
||||
}
|
||||
|
||||
// public routes
|
||||
|
||||
Reference in New Issue
Block a user