️ feat: update global styles and color variables for improved theming

refactor: change import paths for DeviceContext and GravatarAvatar components

fix: adjust login form API call and update UI text for clarity

feat: add post API for listing posts with pagination and filtering options

feat: implement BlogCard component for displaying blog posts with enhanced UI

feat: create Badge component for consistent styling of labels and indicators

refactor: reintroduce DeviceContext with improved functionality for theme and language management

feat: define Label and Post models for better type safety and structure
This commit is contained in:
2025-07-24 13:12:59 +08:00
parent 21a1726f71
commit abe1099711
30 changed files with 935 additions and 288 deletions

View File

@ -7,14 +7,15 @@ import (
)
func registerLabelRoutes(group *route.RouterGroup) {
labelController := v1.NewLabelController()
labelGroup := group.Group("/label").Use(middleware.UseAuth(true))
labelGroupWithoutAuth := group.Group("/label").Use(middleware.UseAuth(false))
{
labelGroupWithoutAuth.GET("/l/:id", v1.Label.Get)
labelGroupWithoutAuth.GET("/list", v1.Label.List)
labelGroupWithoutAuth.GET("/l/:id", labelController.Get)
labelGroupWithoutAuth.GET("/list", labelController.List)
labelGroup.POST("/l", v1.Label.Create)
labelGroup.DELETE("/l/:id", v1.Label.Delete)
labelGroup.PUT("/l/:id", v1.Label.Update)
labelGroup.POST("/l", labelController.Create)
labelGroup.DELETE("/l/:id", labelController.Delete)
labelGroup.PUT("/l/:id", labelController.Update)
}
}