All checks were successful
Build and Release / release (push) Successful in 1m33s
18 lines
477 B
Go
18 lines
477 B
Go
package routes
|
|
|
|
import (
|
|
"history-api/internal/controllers"
|
|
|
|
"github.com/gofiber/fiber/v3"
|
|
)
|
|
|
|
func WikiRoutes(router fiber.Router, wikiController *controllers.WikiController) {
|
|
wiki := router.Group("/wikis")
|
|
wiki.Get("/", wikiController.SearchWikis)
|
|
wiki.Get("/slug/exists", wikiController.IsExistWikiSlug)
|
|
wiki.Get("/slug/:slug", wikiController.GetWikiBySlug)
|
|
wiki.Get("/content/:id", wikiController.GetWikiContentById)
|
|
wiki.Get("/:id", wikiController.GetWikiById)
|
|
}
|
|
|