quetre/routes/apiRoutes.js
2022-07-19 21:48:02 -04:00

20 lines
480 B
JavaScript

import express from 'express';
import {
about,
unimplemented,
answers,
topic,
image
} from '../controllers/apiController.js';
const apiRouter = express.Router();
apiRouter.get('/', about);
apiRouter.get('/search', unimplemented);
apiRouter.get('/image/:domain/:path', image);
apiRouter.get('/profile/:name', unimplemented);
apiRouter.get('/topic/:slug', topic);
apiRouter.get('/unanswered/:slug', answers);
apiRouter.get('/:slug', answers);
export default apiRouter;