mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 07:03:25 +00:00
16 lines
462 B
TypeScript
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');
|
|
});
|