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
This commit is contained in:
zyachel 2024-04-08 00:33:16 +05:30
parent a0ac36a174
commit f49062d44a
13 changed files with 36 additions and 489 deletions

View file

@ -6,13 +6,13 @@ import {
topic,
image,
profile,
search,
gone,
} from '../controllers/apiController.js';
const apiRouter = express.Router();
apiRouter.get('/(|search)', search);
apiRouter.get('/about', about);
apiRouter.get('/search', gone);
apiRouter.get('/(|about)', about);
apiRouter.get('/image/:domain/:path', image);
apiRouter.get('/profile/:name', profile);
apiRouter.get('/topic/:slug', topic);