Newer
Older
infinity-rain / app.js
"use strict";

var express = require("express");
var path = require("path");

var app = express();

app.set("port", 8080);
app.disable("x-powered-by");

app.use("/style", express.static(path.join(__dirname, "style")));
app.use("/models", express.static(path.join(__dirname, "style")));
app.use("/three", express.static(path.join(__dirname, "node_modules", "three", "build")));
app.use("/", express.static(path.join(__dirname, "public")));

app.listen(app.get("port"), () => console.log("Started..."));