Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gael Leblan committed Jul 22, 2020
1 parent 7a8382d commit 42b490b
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ const nodeSlicer = require('node-slic3r');
const express = require('express')
const app = express()
const fs = require('fs');
const compression = require('compression')
const cors = require('cors')
// compress responses
app.use(compression())
// default options
app.use(fileUpload());
app.use(cors());

app.get('/', function (req, res) {
res.send('Hello World!')
Expand Down
96 changes: 96 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"compression": "^1.7.4",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-fileupload": "^1.1.7-alpha.4",
"fs": "0.0.1-security",
Expand Down

0 comments on commit 42b490b

Please sign in to comment.