Podpora mock dat pro vývoj o víkendech
This commit is contained in:
@@ -4,6 +4,11 @@ import bodyParser from "body-parser";
|
||||
import { fetchFood, fetchPizzy } from "./chefie";
|
||||
import cors from 'cors';
|
||||
import { getData, updateChoice } from "./service";
|
||||
import dotenv from 'dotenv';
|
||||
import path from 'path';
|
||||
|
||||
const ENVIRONMENT = process.env.NODE_ENV || 'production'
|
||||
dotenv.config({ path: path.resolve(__dirname, `../.env.${ENVIRONMENT}`) });
|
||||
|
||||
const app = express();
|
||||
const server = require("http").createServer(app);
|
||||
|
||||
Reference in New Issue
Block a user