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