Something went wrong. Try again.
An open-source, container-based Platform-as-a-Service (PAAS) for seamless deployments and effortless infrastructure management — built on f…
Something went wrong. Try again.
354 B · 18 lines
TypeScript
at devops
123456789101112131415161718
import { Router, Request, Response } from 'express';const router = Router();
import API from './api';import Auth from './auth';
router.use('/api/v1', API);router.use('/auth', Auth);
router.get('/', (req: Request, res: Response) => { res.json({ status: 200, message: 'API is working properly' });});
export default router;