mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 02:20:54 +01:00
Make API routes more lenient (maybe #483?)
This commit is contained in:
parent
d53a41b45a
commit
d682b07fa5
1 changed files with 8 additions and 4 deletions
|
@ -7,10 +7,14 @@ import { Constants } from '../../constants';
|
|||
export const api = new Hono();
|
||||
|
||||
/* Current v1 API endpoints. Currently, these still go through the Twitter embed requests. API v2+ won't do this. */
|
||||
api.get('/status/:id/:language?', statusRequest);
|
||||
api.get('/status/:id/:language?/', statusRequest);
|
||||
api.get('/:handle/status/:id/:language?', statusRequest);
|
||||
api.get('/:handle/status/:id/:language?/', statusRequest);
|
||||
api.get('/status/:id', statusRequest);
|
||||
api.get('/status/:id/', statusRequest);
|
||||
api.get('/status/:id/:language', statusRequest);
|
||||
api.get('/status/:id/:language/', statusRequest);
|
||||
api.get('/:handle/status/:id', statusRequest);
|
||||
api.get('/:handle/status/:id/', statusRequest);
|
||||
api.get('/:handle/status/:id/:language', statusRequest);
|
||||
api.get('/:handle/status/:id/:language/', statusRequest);
|
||||
api.get('/robots.txt', async c => c.text(Strings.ROBOTS_TXT_API));
|
||||
|
||||
api.get('/:handle', profileRequest);
|
||||
|
|
Loading…
Add table
Reference in a new issue