archive
/
tstatic
Archived
1
Fork 0

rename utils to consts

This commit is contained in:
Jake Howard 2017-01-21 18:22:50 +00:00
parent ea37209be1
commit 35fbefef03
5 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@
},
"homepage": "https://github.com/RealOrangeOne/tstatic#readme",
"dependencies": {
"basic-auth": "^1.1.0",
"compression": "=1.6.2",
"connect-static-file": "=1.1.2",
"express": "=4.14.0",

View File

@ -1,6 +1,6 @@
const staticFile = require('connect-static-file');
const path = require('path');
const { SERVE_DIR } = require('./utils');
const { SERVE_DIR } = require('./consts');
const handle404 = staticFile(path.join(SERVE_DIR, '.404.html'));
module.exports = function (request, response, next) {

View File

@ -3,7 +3,7 @@
console.log('Starting Server...');
const app = require('express')();
const utils = require('./utils');
const utils = require('./consts');
const compression = require('compression');
const helmet = require('helmet');

View File

@ -1,6 +1,6 @@
const express = require('express');
const path = require('path');
const { SERVE_DIR } = require('./utils');
const { SERVE_DIR } = require('./consts');
module.exports.indexHandle = function (request, response, next) {
if (request.url.endsWith('/')) {