bla
This commit is contained in:
parent
e64ba35d3a
commit
6c7d0801c2
1 changed files with 3 additions and 5 deletions
8
index.js
8
index.js
|
@ -1,7 +1,4 @@
|
||||||
const fastify = require('fastify')({
|
const fastify = require('fastify')({ logger: true })
|
||||||
logger: true,
|
|
||||||
bodyLimit: 10485760
|
|
||||||
})
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const CryptoJS = require("crypto-js");
|
const CryptoJS = require("crypto-js");
|
||||||
|
@ -28,7 +25,8 @@ let MaxAmountCrepe = 10;
|
||||||
let Supplements = ["nature", "sucre", "nutella", "confiture"];
|
let Supplements = ["nature", "sucre", "nutella", "confiture"];
|
||||||
|
|
||||||
fastify.addContentTypeParser('application/json', {
|
fastify.addContentTypeParser('application/json', {
|
||||||
parseAs: 'string'
|
parseAs: 'string',
|
||||||
|
bodyLimit: 10485760
|
||||||
}, function(req, body, done) {
|
}, function(req, body, done) {
|
||||||
try {
|
try {
|
||||||
var json = JSON.parse(body)
|
var json = JSON.parse(body)
|
||||||
|
|
Loading…
Reference in a new issue