chore: added Helmet

This commit is contained in:
Riccardo
2023-08-05 14:20:15 +02:00
parent 82431d877c
commit 21849bf394
3 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import * as bodyParser from 'body-parser';
import cors from 'cors';
import express, { Request, Response } from 'express';
import helmet from 'helmet';
import { Validator } from 'jsonschema';
import { addition } from '../utils/addition';
@@ -8,6 +9,7 @@ const server = express();
server.use(cors());
server.use(express.json());
server.use(bodyParser.json());
server.use(helmet());
const validator = new Validator();
const schema = {