18 lines
423 B
JavaScript
18 lines
423 B
JavaScript
const express = require('express');
|
|
const path = require('path');
|
|
const app = express();
|
|
|
|
|
|
// app.set("/", "html");
|
|
app.use(express.static(path.join(__dirname, "/")));
|
|
app.use(express.json());
|
|
app.use(express.urlencoded({extended: false}));
|
|
|
|
|
|
app.get('/', (req, res)=> {
|
|
res.sendFile(path.join(__dirname, 'assets/arTab/ar1.html'));
|
|
});
|
|
|
|
app.listen(8080, ()=> {
|
|
console.log("listening on http://localhost:8080");
|
|
}); |