|
|
@ -11,13 +11,11 @@ const PUBLIC = process.env.PUBLIC || "";
|
|
|
|
const router = express.Router();
|
|
|
|
const router = express.Router();
|
|
|
|
const routes = (app) => {
|
|
|
|
const routes = (app) => {
|
|
|
|
app.get("/", (req, res) => {
|
|
|
|
app.get("/", (req, res) => {
|
|
|
|
// res.sendFile("index.html", { root: __dirname });
|
|
|
|
|
|
|
|
res.render("index", {
|
|
|
|
res.render("index", {
|
|
|
|
address: PREFIX,
|
|
|
|
address: PREFIX,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
app.get("/destination", (req, res) => {
|
|
|
|
app.get("/destination", (req, res) => {
|
|
|
|
// res.sendFile("destination.html", { root: __dirname });
|
|
|
|
|
|
|
|
res.render("destination", {
|
|
|
|
res.render("destination", {
|
|
|
|
address: PREFIX,
|
|
|
|
address: PREFIX,
|
|
|
|
});
|
|
|
|
});
|
|
|
|