Skip to content

Commit

Permalink
feature(server) es2018-ify
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Oct 30, 2018
1 parent 28d584a commit 567514f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ const path = require('path');

const restafary = require('restafary');
const socketFile = require('socket-file');
const express = require('express');
const {Router} = require('express');
const currify = require('currify');
const storage = require('fullstore');

const resolvePath = require('./resolve-path');
const editFn = require('./edit');

const Router = express.Router;

const rootStorage = storage();
const optionsStorage = storage();

Expand Down Expand Up @@ -71,7 +69,7 @@ function checkOption(isOption) {
}

function _deepword(prefix, req, res, next) {
const url = req.url
const {url} = req;

req.url = url.replace(prefix, '');

Expand Down

0 comments on commit 567514f

Please sign in to comment.