restructured project (shared-operations)

This commit is contained in:
Felix Kaspar
2023-11-07 01:40:00 +01:00
parent 7186c6c3e0
commit 47e0092378
36 changed files with 36 additions and 23 deletions

View File

@@ -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');