change license, restructure

This commit is contained in:
2023-08-05 00:42:24 +02:00
parent db4731e1af
commit bbf41f41a9
37 changed files with 2788 additions and 10645 deletions

17
src/backend/router.ts Normal file
View File

@@ -0,0 +1,17 @@
import { Request, Response, Router } from 'express';
import regionController from './controllers/region.controller';
import wxController from './controllers/wx.controller';
const router = Router();
router.get('/regions', regionController.getRegions);
router.get('/regions/:region', regionController.getRegion);
router.get('/regions/:region/wx', wxController.getRegionWx);
router.use((req: Request, res: Response) => {
// 404
res.status(404).json({ msg: 'the requested resource could not be found' });
});
export default { router };