feat: update page
This commit is contained in:
@@ -56,6 +56,16 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
Body[model.Posts]("form"),
|
||||
))
|
||||
|
||||
router.Delete("/v1/admin/posts/:id", Func1(
|
||||
r.posts.Delete,
|
||||
PathParam[int64]("id"),
|
||||
))
|
||||
|
||||
router.Get("/v1/admin/posts/:id", DataFunc1(
|
||||
r.posts.Show,
|
||||
PathParam[int64]("id"),
|
||||
))
|
||||
|
||||
// 注册路由组: uploads
|
||||
router.Post("/v1/admin/uploads/:md5/chunks/:idx", Func3(
|
||||
r.uploads.Chunks,
|
||||
|
||||
Reference in New Issue
Block a user