Commit df77d0e7 authored by Zac Wood's avatar Zac Wood
Browse files

fixed path in app.js

parent cabb8c32
Pipeline #2812 passed with stage
in 2 minutes and 27 seconds
var path = require("path");
var express = require("express");
var path = require('path');
var express = require('express');
var DIST_DIR = __dirname;
var PORT = 3000;
var DIST_DIR = path.join(__dirname, 'dist');
var PORT = 8080;
var app = express();
//Serving the files on the dist folder
//Send index.html when the user access the web
app.get("*", function (req, res) {
res.sendFile(path.join(DIST_DIR, "index.html"));
app.get('*', function(req, res) {
res.sendFile(path.join(DIST_DIR, 'index.html'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment