add docker files
This commit is contained in:
parent
555dd8bda6
commit
5b39c8b2c2
@ -8,9 +8,13 @@ const app = express();
|
|||||||
// Serve static files from the 'src' directory
|
// Serve static files from the 'src' directory
|
||||||
app.use(express.static(path.join(__dirname, '')));
|
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
|
// Define a route to serve the HTML file
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
// Send the HTML file as the response
|
|
||||||
res.sendFile(path.join(__dirname, 'index.html'));
|
res.sendFile(path.join(__dirname, 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user