whisper-money/app
Víctor Falcón 8db7f30a02
Disable SSR for dashboard routes and extract API routes (#19)
## Summary

- Add `WithoutSsr` middleware to disable SSR per route
- Extract API endpoints to `routes/api.php` for better organization
- Apply `WithoutSsr` to dashboard, accounts, and transactions routes

## Changes

### New Files
- `app/Http/Middleware/WithoutSsr.php` - Middleware that disables SSR
for specific routes
- `routes/api.php` - Dedicated file for API endpoints

### Modified Files
- `bootstrap/app.php` - Register API routes
- `routes/web.php` - Remove API routes, apply WithoutSsr middleware

## Route Structure

- **routes/web.php** - Page routes only (Inertia pages)
- **routes/api.php** - All `/api/*` endpoints
- **routes/settings.php** - Settings routes (existing)
2025-12-08 19:21:48 +01:00
..
Actions Add category type field support (#2) 2025-12-01 20:19:47 +01:00
Console/Commands Add category type field support (#2) 2025-12-01 20:19:47 +01:00
Enums Accounts: Allow users to create custom banks with his own logo, and name (#12) 2025-12-04 15:24:04 +01:00
Http Disable SSR for dashboard routes and extract API routes (#19) 2025-12-08 19:21:48 +01:00
Models Subscriptions (#15) 2025-12-06 19:09:56 +01:00
Policies Accounts: new pages to list, and see account details (#13) 2025-12-05 14:33:18 +01:00
Providers Add config option to hide registration and redirect to login 2025-12-06 19:35:41 +01:00
Services Refactor: Optimize category management in CreateDefaultCategories and ResetUserCategories 2025-12-01 15:37:53 +01:00