chore: initial commit
This commit is contained in:
18
internal/router/client.go
Normal file
18
internal/router/client.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"server/internal/handler"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
func SetupPostRoutes(r chi.Router, h *handler.PostHandler) {
|
||||
r.Get("/post", h.ListPage)
|
||||
r.Get("/post/{slug}", h.GetPost)
|
||||
r.Get("/category/stats", h.ListCategoryStats)
|
||||
r.Get("/post/archive", h.ListArchives)
|
||||
}
|
||||
|
||||
func SetupWebRoutes(r chi.Router, h *handler.WebHandler) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user