This commit is contained in:
2022-05-31 15:33:51 -03:00
parent a9aeb6c409
commit 1320d62ad0
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,10 @@ const port = process.env.PORT || 3000
//Accept with JSON files
server.use(express.json())
//Solve CORS problem
const cors = require("cors")
server.use(cors())
//Serve public for CSS files
const path = require("path");
server.use(express.static(path.resolve('public')));