feat: udpate upload content type
This commit is contained in:
@@ -68,9 +68,10 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
Query[ListQuery]("query"),
|
||||
))
|
||||
|
||||
router.Get("/api/posts/buy/:id", Func1(
|
||||
router.Get("/api/posts/buy/:id", DataFunc2(
|
||||
r.posts.Buy,
|
||||
PathParam[int64]("id"),
|
||||
Local[*model.Users]("user"),
|
||||
))
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user