🎨 chore(server): apply swag fmt alignment to swagger annotations
Pre-commit hook left these whitespace-only changes after PR #29 (cache endpoints). Re-aligns the @Param/@Success/@Failure columns produced by swag fmt. No behavior change.
This commit is contained in:
@@ -463,9 +463,9 @@ func (s *Server) handleHealthz(w http.ResponseWriter, r *http.Request) {
|
||||
// @Tags API/v1/Greeting
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param name query string false "Name to greet"
|
||||
// @Success 200 {object} map[string]string "Greeting message"
|
||||
// @Failure 400 {object} map[string]string "Invalid request"
|
||||
// @Param name query string false "Name to greet"
|
||||
// @Success 200 {object} map[string]string "Greeting message"
|
||||
// @Failure 400 {object} map[string]string "Invalid request"
|
||||
// @Router /v1/greet [get]
|
||||
func (s *Server) handleGreetQuery(w http.ResponseWriter, r *http.Request) {
|
||||
name := r.URL.Query().Get("name")
|
||||
@@ -509,9 +509,9 @@ func (s *Server) handleGreetQuery(w http.ResponseWriter, r *http.Request) {
|
||||
// @Tags API/v1/Greeting
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param name path string true "Name to greet"
|
||||
// @Success 200 {object} map[string]string "Greeting message"
|
||||
// @Failure 400 {object} map[string]string "Invalid request"
|
||||
// @Param name path string true "Name to greet"
|
||||
// @Success 200 {object} map[string]string "Greeting message"
|
||||
// @Failure 400 {object} map[string]string "Invalid request"
|
||||
// @Router /v1/greet/{name} [get]
|
||||
func (s *Server) handleGreetPath(w http.ResponseWriter, r *http.Request) {
|
||||
name := chi.URLParam(r, "name")
|
||||
@@ -555,10 +555,10 @@ func (s *Server) handleGreetPath(w http.ResponseWriter, r *http.Request) {
|
||||
// @Tags API/Admin
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param X-Admin-Password header string true "Admin master password"
|
||||
// @Success 200 {object} map[string]interface{} "Cache flushed successfully"
|
||||
// @Failure 401 {object} map[string]string "Unauthorized"
|
||||
// @Failure 503 {object} map[string]string "Cache disabled"
|
||||
// @Param X-Admin-Password header string true "Admin master password"
|
||||
// @Success 200 {object} map[string]interface{} "Cache flushed successfully"
|
||||
// @Failure 401 {object} map[string]string "Unauthorized"
|
||||
// @Failure 503 {object} map[string]string "Cache disabled"
|
||||
// @Router /admin/cache/flush [post]
|
||||
func (s *Server) handleAdminCacheFlush(w http.ResponseWriter, r *http.Request) {
|
||||
if s.cacheService == nil {
|
||||
|
||||
Reference in New Issue
Block a user