Add frontend components and API for system status display
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3001;
|
||||
const DOMAIN = process.env.DOMAIN || 'homebase.sketchferret.com';
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
// Serve static files from public folder
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
// API endpoint
|
||||
app.get('/api/status', (req, res) => {
|
||||
res.json({
|
||||
message: 'HomeBase is running!',
|
||||
domain: DOMAIN,
|
||||
|
||||
Reference in New Issue
Block a user