mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
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
|
|
);
|