dockerize app
This commit is contained in:
parent
af99a9b4c2
commit
091a21c8e6
9 changed files with 78 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
const express = require("express");
|
||||
const db = require("./db");
|
||||
const port = 6063;
|
||||
const port = 3000;
|
||||
const cors = require('cors'); // to remove cors origin error in dev TODO: remove when dockerized
|
||||
|
||||
const app = express();
|
||||
|
@ -8,7 +8,10 @@ app.use(cors()); // to remove cors origin error in dev TODO: remove when docker
|
|||
app.use(express.json());
|
||||
|
||||
// ####### ROUTES #######
|
||||
|
||||
app.get("/test", async (req, res) => {
|
||||
console.log('test')
|
||||
res.json({ test: 'test' })
|
||||
});
|
||||
// ### GET ALL RECIPES ###
|
||||
app.get("/recipes", async (req, res) => {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue