mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 19:04:23 +02:00
Move server directory outside of frontend src
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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
|
||||
);
|
||||
Reference in New Issue
Block a user