sleep-tracker-backend/api/server.js

12 lines
224 B
JavaScript

const express = require("express");
const helmet = require('helmet');
const cors = require('cors');
const server = express();
server.use(helmet());
server.use(express.json());
server.use(cors());
module.exports = server;