Remove coffeescript dependency from website

This commit is contained in:
Blade Barringer
2015-11-11 08:43:36 -06:00
parent 774a42d67e
commit 9408effb4e
6 changed files with 7 additions and 19 deletions

View File

@@ -20,7 +20,6 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
});
} else {
require('coffee-script'); // remove this once we've fully converted over
var express = require("express");
var http = require("http");
var path = require("path");
@@ -100,7 +99,7 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
// Route requests to the right app
app.use(app.router);
// Matches all request except the ones going to /api/v3/**
app.all(/^(?!\/api\/v3).+/i, oldApp);
app.all(/^(?!\/api\/v3).+/i, oldApp);
// Matches all requests going to /api/v3
app.all('/api/v3', newApp);
@@ -159,4 +158,4 @@ if (cores!==0 && cluster.isMaster && (isDev || isProd)) {
});
module.exports = server;
}
}