restructured project (shared-operations)
This commit is contained in:
5
index.js
5
index.js
@@ -1,12 +1,13 @@
|
||||
|
||||
import api from './routes/api/index.js';
|
||||
import api from './server-node/routes/api/index.js';
|
||||
|
||||
import express from 'express';
|
||||
const app = express();
|
||||
const PORT = 8080;
|
||||
|
||||
// Static Middleware
|
||||
app.use(express.static('./public'));
|
||||
app.use(express.static('./client-vanilla'));
|
||||
app.use(express.static('./shared-operations'));
|
||||
|
||||
app.get('/', function (req, res, next) { // TODO: Use EJS?
|
||||
res.render('home.ejs');
|
||||
|
||||
Reference in New Issue
Block a user