add docker files

This commit is contained in:
canguilieme julien 2024-10-13 18:43:39 +02:00
parent 555dd8bda6
commit 5b39c8b2c2

View File

@ -8,9 +8,13 @@ const app = express();
// Serve static files from the 'src' directory
app.use(express.static(path.join(__dirname, '')));
// Serve app-ads.txt when accessed at the root (/app-ads.txt)
app.get('/app-ads.txt', (req, res) => {
res.sendFile(path.join(__dirname, 'app-ads.txt'));
});
// Define a route to serve the HTML file
app.get('/', (req, res) => {
// Send the HTML file as the response
res.sendFile(path.join(__dirname, 'index.html'));
});