Add server
This commit is contained in:
parent
fce1aa4710
commit
d1cd9d5419
|
@ -0,0 +1,10 @@
|
|||
require("dotenv").config()
|
||||
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
|
||||
app.use('/', express.static('./www'))
|
||||
console.log(process.env.API_URL);
|
||||
app.get('/apiurl', (req, res) => res.send(process.env.API_URL));
|
||||
|
||||
app.listen(3000, '0.0.0.0');
|
Loading…
Reference in New Issue