mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-19 09:54:18 +02:00
add initial files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import express, { Router } from 'express';
|
||||
import { albumsController } from '../controllers';
|
||||
import { authenticateLocal } from '../middleware';
|
||||
|
||||
export const albumsRouter: Router = express.Router();
|
||||
|
||||
albumsRouter.get('/', authenticateLocal, albumsController.getAlbums);
|
||||
|
||||
albumsRouter.get('/:id', authenticateLocal, albumsController.getAlbumById);
|
||||
Reference in New Issue
Block a user