Videos API

This commit is contained in:
2025-02-08 15:11:52 +08:00
parent b756a9f19c
commit 59f0288c27
3 changed files with 227 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ func MapAPIs(app *fiber.App, baseURL string) {
questions.Put("/:postId", editQuestion)
questions.Put("/:postId/answer", selectQuestionAnswer)
}
videos := api.Group("/videos").Name("Video API")
{
videos.Post("/", createVideo)
videos.Put("/:postId", editVideo)
}
posts := api.Group("/posts").Name("Posts API")
{