mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
15 lines
425 B
TypeScript
15 lines
425 B
TypeScript
import { middleware } from '#start/kernel';
|
|
import router from '@adonisjs/core/services/router';
|
|
|
|
const UpdateCollectionsController = () =>
|
|
import('#api/collections/controllers/update_collection_controller');
|
|
|
|
router
|
|
.group(() => {
|
|
router
|
|
.put('/:id', [UpdateCollectionsController, 'execute'])
|
|
.as('api-collections.update');
|
|
})
|
|
.prefix('/api/v1/collections')
|
|
.middleware([middleware.auth({ guards: ['api'] })]);
|