config load bug

pull/19/head
Bosn 7 years ago
parent f843ad3aee
commit 8dcdfb03dc

@ -1,7 +1,8 @@
const start = () => {
let execSync = require('child_process').execSync
let app = require('./app')
let port = 8080
const config = require('../config')
let port = config.serve.port
let url = `http://localhost:${port}` // /api.html
let open = false
console.log('----------------------------------------')

@ -125,11 +125,6 @@ router.all('/app/mock/(\\d+)/(\\w+)/(.+)', async (ctx, next) => {
let repository = await Repository.findById(repositoryId)
let collaborators = await repository.getCollaborators()
console.log(repositoryId)
console.log(method)
console.log(url)
let itf
itf = await Interface.findOne({

@ -24,9 +24,6 @@ pkg.getRelative = url => {
}
pkg.urlMatchesPattern = (url, pattern) => {
console.log('matching')
console.log(url)
console.log(pattern)
url = pkg.getRelative(url)
pattern = pkg.getRelative(pattern)
let re = pathToRegexp(pattern)

Loading…
Cancel
Save