mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Add genres route
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import express, { Router } from 'express';
|
||||
import { controller } from '@controllers/index';
|
||||
import { validation } from '@validations/index';
|
||||
import { validateRequest } from '@validations/shared.validation';
|
||||
|
||||
export const router: Router = express.Router({ mergeParams: true });
|
||||
|
||||
router.get(
|
||||
'/',
|
||||
validateRequest(validation.genres.list),
|
||||
controller.genres.getList
|
||||
);
|
||||
Reference in New Issue
Block a user