mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
[Server] Fix bug
This commit is contained in:
parent
0bbcba675c
commit
d810a0bb72
@ -17,6 +17,7 @@ const app = express();
|
|||||||
|
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
app.set('etag', false);
|
app.set('etag', false);
|
||||||
|
require('./service/github')(app);
|
||||||
app.use(bodyParser.urlencoded({ extended: true }));
|
app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
app.use(bodyParser.json({
|
app.use(bodyParser.json({
|
||||||
type: ['application/json', 'text/plain']
|
type: ['application/json', 'text/plain']
|
||||||
@ -61,7 +62,6 @@ app.use((req, res, next) => {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
require('./service/github')(app);
|
|
||||||
require('./service/twitter')(app);
|
require('./service/twitter')(app);
|
||||||
|
|
||||||
module.exports = app;
|
module.exports = app;
|
||||||
|
Loading…
Reference in New Issue
Block a user