chore: initial commit

This commit is contained in:
2026-07-22 17:50:33 +08:00
parent 82936a8987
commit ee9f50b859
107 changed files with 8346 additions and 0 deletions

18
internal/router/client.go Normal file
View 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) {
}