Skip to content

Commit

Permalink
fix: augmente la taille autorisée pour glossariser un contenu (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot authored Sep 23, 2024
1 parent fa4294d commit d1d850e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion targets/export-elasticsearch/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import "./controllers";
import bodyParser from "body-parser";
import cors from "cors";
import type { NextFunction, Request, Response } from "express";
import express from "express";
import { Container } from "inversify";
import { InversifyExpressServer } from "inversify-express-utils";

import {
ExportEsRunMiddleware,
GlossaryMiddleware,
} from "./controllers/middlewares";
import { S3Parameters, S3Repository, ExportRepository } from "./repositories";
import { ExportRepository, S3Parameters, S3Repository } from "./repositories";
import {
CopyContainerService,
ExportService,
Expand Down Expand Up @@ -87,6 +88,9 @@ rootContainer
// create server
const server = new InversifyExpressServer(rootContainer);
server.setConfig((srv) => {
// Increase limit for glossary
srv.use(express.json({ limit: "5mb" }));

// add body parser
srv.use(
bodyParser.urlencoded({
Expand Down

0 comments on commit d1d850e

Please sign in to comment.