// src/utils/routes.js // Centralized route definitions for the entire application // This ensures consistency and makes route changes easier to manage export const ROUTES = { // ====== Public Routes ====== ROOT: '/', LANDING: '/', HOME: '/home', ABOUT: '/about', // ====== Authentication Routes ====== LOGIN: '/login', REGISTER: '/register', FORGOT_PASSWORD: '/forgot-password', RESET_PASSWORD: '/reset-password', VERIFY_EMAIL: '/verify-email', // ====== User Routes ====== PROFILE: '/profile', // ====== Deck Routes ====== DECKS: '/decks', DECK_DETAILS: '/deck/:deckId', DECK_CREATOR: '/deck-creator', DECK_CREATOR_EDIT: '/deck-creator/:deckId', // ====== Game Routes ====== CHOOSE_DECK: '/choosedeck', PLAYER_SETUP: '/playersetup', LOBBY: '/lobby', GAME: '/game', GAME_TEST: '/game-test', // ====== Other Routes ====== REPORTS: '/report', CONTACTS: '/contacts', TEST: '/test', } // Helper functions to generate dynamic routes export const routeHelpers = { deckDetails: (deckId) => `/deck/${deckId}`, deckCreatorEdit: (deckId) => `/deck-creator/${deckId}`, }