Remove old shortener path (#7160)

This has been dangling as a TODO from @mattgodbolt since 2021. Running
the following Athena query:

```sql
SELECT COUNT(*) as reqs, uri, date
from cloudfront_logs
WHERE uri LIKE '/shortener%'
GROUP BY date, uri
```

Yields about 8-20 requests per day. I think this is an insignificant
enough amount of traffic to justify removing it now.
This commit is contained in:
Mats Jun Larsen
2024-12-01 10:07:45 +09:00
committed by GitHub
parent fba4ba672a
commit e03f3d058c

4
app.ts
View File

@@ -885,9 +885,7 @@ async function main() {
.use(sourceController.createRouter())
.use(assemblyDocumentationController.createRouter())
.use(formattingController.createRouter())
.get('/g/:id', oldGoogleUrlHandler)
// Deprecated old route for this -- TODO remove in late 2021
.post('/shortener', routeApi.apiHandler.shortener.handle.bind(routeApi.apiHandler.shortener));
.get('/g/:id', oldGoogleUrlHandler);
noscriptHandler.InitializeRoutes({limit: ceProps('bodyParserLimit', maxUploadSize)});
routeApi.InitializeRoutes();