mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
refactor: move routes in dedicated files + improve routes management
This commit is contained in:
12
start/routes/app.ts
Normal file
12
start/routes/app.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import router from '@adonisjs/core/services/router';
|
||||
const AppsController = () => import('#controllers/apps_controller');
|
||||
|
||||
/**
|
||||
* All routes for both logged and guest users
|
||||
*/
|
||||
router.group(() => {
|
||||
router.get('/', [AppsController, 'index']).as('home');
|
||||
router
|
||||
.post('/user/theme', [AppsController, 'updateUserTheme'])
|
||||
.as('user.theme');
|
||||
});
|
||||
Reference in New Issue
Block a user