quetre/routes/apiRoutes.js
zyachel f49062d44a fix(search): remove broken search route
can't do searches now unless logged-in

BREAKING CHANGE: any search request will be responded with a 410
2024-04-08 00:33:16 +05:30

24 lines
591 B
JavaScript

import express from 'express';
import {
about,
unimplemented,
answers,
topic,
image,
profile,
gone,
} from '../controllers/apiController.js';
const apiRouter = express.Router();
apiRouter.get('/search', gone);
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;