feat: bring back legal pages

This commit is contained in:
Sonny
2024-05-20 01:07:11 +02:00
committed by Sonny
parent e6803c174c
commit 3ff7619e94
16 changed files with 190 additions and 46 deletions

View File

@@ -5,9 +5,9 @@ const AppsController = () => import('#controllers/apps_controller');
* All routes for both logged and guest users
*/
router.group(() => {
router.get('/', [AppsController, 'index']).as('home');
router.get('/privacy', () => 'privacy').as('privacy');
router.get('/terms', () => 'terms').as('terms');
router.on('/').renderInertia('home').as('home');
router.on('/terms').renderInertia('terms').as('terms');
router.on('/privacy').renderInertia('privacy').as('privacy');
router
.post('/user/theme', [AppsController, 'updateUserTheme'])