Newer
Older
infinity-rain / app.js
@peter peter on 7 Jul 2018 615 bytes Edit scene in blender.
"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, "models")));
app.use("/three", express.static(path.join(__dirname, "node_modules", "three", "build")));
app.use("/loaders", express.static(path.join(__dirname, "node_modules", "three", "examples", "js", "loaders")));
app.use("/", express.static(path.join(__dirname, "public")));

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