develop #3

Merged
kbe merged 227 commits from develop into main 2025-09-16 14:35:23 +00:00
4 changed files with 5 additions and 4 deletions
Showing only changes of commit 1c7a62acde - Show all commits

View File

@@ -2,7 +2,7 @@
RAILS_ENV=development RAILS_ENV=development
SECRET_KEY_BASE=a3f5c6e7b8d9e0f1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7 SECRET_KEY_BASE=a3f5c6e7b8d9e0f1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7
DEVISE_SECRET_KEY=your_devise_secret_key_here DEVISE_SECRET_KEY=your_devise_secret_key_here
APP_NAME=Pafterwork APP_NAME=Aperonight
# Database Configuration for production and development # Database Configuration for production and development
DB_HOST=localhost DB_HOST=localhost

View File

@@ -4,7 +4,7 @@ module Api
module V1 module V1
class PartiesController < ApiController class PartiesController < ApiController
# Load party before specific actions to reduce duplication # 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 # GET /api/v1/parties
# Returns all parties sorted by creation date (newest first) # Returns all parties sorted by creation date (newest first)

View File

@@ -3,7 +3,7 @@
class PagesController < ApplicationController class PagesController < ApplicationController
# Require user authentication for dashboard access # Require user authentication for dashboard access
# Redirects to login page if user is not signed in # 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 # User dashboard showing personalized content
# Accessible only to authenticated users # Accessible only to authenticated users

View File

@@ -36,10 +36,11 @@ Rails.application.routes.draw do
namespace :v1 do namespace :v1 do
# RESTful routes for party management # RESTful routes for party management
resources :parties, only: [ :index, :show, :create, :update, :destroy ] resources :parties, only: [ :index, :show, :create, :update, :destroy ]
# resources :bundles, only: [ :index, :show, :create, :update, :destroy ]
# Additional API endpoints can be added here as needed # Additional API endpoints can be added here as needed
# Example: search, filtering, user-specific endpoints # Example: search, filtering, user-specific endpoints
end end
end end
end end