deployment setup
This commit is contained in:
3
backend/.gitignore
vendored
3
backend/.gitignore
vendored
@@ -24,4 +24,5 @@ dist-ssr
|
||||
*.sw?
|
||||
|
||||
|
||||
adduser.sql
|
||||
adduser.sql
|
||||
database.db
|
||||
Binary file not shown.
@@ -47,9 +47,11 @@ app.use(cors());
|
||||
app.use(e.json());
|
||||
app.use(bodyParser.json());
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send("Nothing Here");
|
||||
});
|
||||
// app.get('/', (req, res) => {
|
||||
// res.send("Nothing Here");
|
||||
// });
|
||||
|
||||
app.use('/', e.static('../frontend/dist'));
|
||||
|
||||
app.get('/getPeriod', (req, res) => {
|
||||
// req has nothing
|
||||
|
||||
Reference in New Issue
Block a user