aboutsummaryrefslogtreecommitdiff
path: root/server.js
blob: fd977eed0bf655c1ebed19ad5742af875e9f8e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//temp server
const express = require("express");
const app = express();
const port = 8008;

app.get("/tty", (req, res) => {
  res.sendFile(__dirname + "/html/tty.html");
});
app.get("/display", (req, res) => {
  res.sendFile(__dirname + "/html/display.html");
});
app.use("/src", express.static("src"));
app.listen(port, () => {
  console.log(`${port}`);
});