mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
import { middleware } from '#start/kernel';
|
|
import router from '@adonisjs/core/services/router';
|
|
|
|
const SearchesController = () => import('#controllers/searches_controller');
|
|
|
|
/**
|
|
* Search routes
|
|
*/
|
|
router
|
|
.group(() => {
|
|
router.get('/search', [SearchesController, 'search']).as('search');
|
|
})
|
|
.middleware([middleware.auth()]);
|