[Server] text/plainの場合もJSONとして解析するように
This commit is contained in:
@@ -21,6 +21,9 @@ const app = express();
|
||||
app.disable('x-powered-by');
|
||||
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.json({
|
||||
type: ['application/json', 'text/plain']
|
||||
}));
|
||||
app.use(compression());
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user