personal_website/routes/api/apiRouter.ts
2024-11-01 15:33:15 +01:00

13 lines
391 B
TypeScript

import express, { type Request, type Response } from "express";
import checkAuthenticated from 'miscellaneous/checkAuthenticated';
import mediaRouter from 'routes/api/mediaRouter';
const router = express.Router();
router.use('/media', mediaRouter);
router.get('/', function (req: Request, res: Response) {
res.status(200).json({ message: 'API is working' });
});
export default router;