refactor: clean up controller before_action definitions and routes
- Standardize before_action syntax in controllers by removing extraneous spaces - Comment out unused bundles routes in API v1 namespace - Clean up whitespace in routes file These changes improve code consistency and maintainability while preparing for future feature development. 💘 Generated with Crush Co-Authored-By: Crush <crush@charm.land>
This commit is contained in:
@@ -4,7 +4,7 @@ module Api
|
||||
module V1
|
||||
class PartiesController < ApiController
|
||||
# Load party before specific actions to reduce duplication
|
||||
before_action :set_party, only: [:show, :update, :destroy]
|
||||
before_action :set_party, only: [ :show, :update, :destroy ]
|
||||
|
||||
# GET /api/v1/parties
|
||||
# Returns all parties sorted by creation date (newest first)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
class PagesController < ApplicationController
|
||||
# Require user authentication for dashboard access
|
||||
# Redirects to login page if user is not signed in
|
||||
before_action :authenticate_user!, only: [:dashboard]
|
||||
before_action :authenticate_user!, only: [ :dashboard ]
|
||||
|
||||
# User dashboard showing personalized content
|
||||
# Accessible only to authenticated users
|
||||
|
||||
Reference in New Issue
Block a user