mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
- Replaced static config with dynamic site info context. - Updated color scheme handling in various components to use site info. - Removed deprecated config file and integrated site info fetching. - Enhanced user preference page to allow color scheme selection. - Adjusted blog and console components to reflect new site info structure. - Improved error handling and fallback mechanisms for site info retrieval.
19 lines
471 B
Go
19 lines
471 B
Go
package apiv1
|
|
|
|
import "github.com/cloudwego/hertz/pkg/app/server"
|
|
|
|
func RegisterRoutes(h *server.Hertz) {
|
|
apiV1Group := h.Group("/api/v1")
|
|
{
|
|
registerCommentRoutes(apiV1Group)
|
|
registerAdminRoutes(apiV1Group)
|
|
registerFileRoutes(apiV1Group)
|
|
registerLabelRoutes(apiV1Group)
|
|
registerLikeRoutes(apiV1Group)
|
|
registerMiscRoutes(apiV1Group)
|
|
registerPageRoutes(apiV1Group)
|
|
registerPostRoutes(apiV1Group)
|
|
registerUserRoutes(apiV1Group)
|
|
}
|
|
}
|