mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
17 lines
416 B
TypeScript
17 lines
416 B
TypeScript
import express, { Router } from 'express';
|
|
import { controller } from '@controllers/index';
|
|
import { validateRequest, validation } from '@validations/index';
|
|
|
|
export const router: Router = express.Router({
|
|
mergeParams: true,
|
|
strict: true,
|
|
});
|
|
|
|
router.get('/', controller.albumArtists.getList);
|
|
|
|
router.get(
|
|
':serverId',
|
|
validateRequest(validation.albumArtists.detail),
|
|
controller.albumArtists.getDetail
|
|
);
|