Question APIs

This commit is contained in:
2025-02-07 19:25:55 +08:00
parent 9d9b2ac866
commit 57b908e5a0
5 changed files with 333 additions and 2 deletions

View File

@@ -36,6 +36,12 @@ func MapAPIs(app *fiber.App, baseURL string) {
articles.Post("/", createArticle)
articles.Put("/:postId", editArticle)
}
questions := api.Group("/questions").Name("Question API")
{
questions.Post("/", createQuestion)
questions.Put("/:postId", editQuestion)
questions.Put("/:postId/answer", selectQuestionAnswer)
}
posts := api.Group("/posts").Name("Posts API")
{