mirror of
https://github.com/zyachel/quetre.git
synced 2025-04-05 05:57:38 +03:00
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:
parent
a0ac36a174
commit
f49062d44a
13 changed files with 36 additions and 489 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue