Files
my-links/start/routes/app.ts
2024-10-07 01:33:59 +02:00

16 lines
462 B
TypeScript

import router from '@adonisjs/core/services/router';
const AppsController = () => import('#controllers/apps_controller');
/**
* All routes for both logged and guest users
*/
router.group(() => {
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'])
.as('user.theme');
});