mirror of
https://github.com/zyachel/quetre.git
synced 2025-04-04 21:47:38 +03:00
24 lines
595 B
JavaScript
24 lines
595 B
JavaScript
import express from 'express';
|
|
import {
|
|
about,
|
|
unimplemented,
|
|
answers,
|
|
topic,
|
|
image,
|
|
profile,
|
|
search,
|
|
} from '../controllers/apiController.js';
|
|
|
|
const apiRouter = express.Router();
|
|
|
|
apiRouter.get('/(|search)', search);
|
|
apiRouter.get('/about', about);
|
|
apiRouter.get('/image/:domain/:path', image);
|
|
apiRouter.get('/profile/:name', profile);
|
|
apiRouter.get('/topic/:slug', topic);
|
|
apiRouter.get('/unanswered/:slug', answers);
|
|
apiRouter.get('/space/:name', unimplemented);
|
|
apiRouter.get('/space/:name/:slug', unimplemented);
|
|
apiRouter.get('/:slug', answers);
|
|
|
|
export default apiRouter;
|