[Server] ✌️
This commit is contained in:
parent
5bdb407979
commit
f30262530d
3 changed files with 8 additions and 6 deletions
|
|
@ -28,9 +28,6 @@ app.use(compression());
|
|||
*/
|
||||
app.use((req, res, next) => {
|
||||
res.header('X-Frame-Options', 'DENY');
|
||||
|
||||
res.locals.user = ((req.headers['cookie'] || '').match(/i=(!\w+)/) || [null, null])[1];
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
|
|
@ -51,8 +48,6 @@ app.get(/\/api:meta/, require('./meta'));
|
|||
app.get(/\/api:url/, require('./service/url-preview'));
|
||||
app.post(/\/api:rss/, require('./service/rss-proxy'));
|
||||
|
||||
require('./service/twitter')(app);
|
||||
|
||||
/**
|
||||
* Subdomain
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue