mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
#2217 use BASE_URL for swagger config
This commit is contained in:
parent
98361ea94f
commit
11d3b7473a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# see https://github.com/wordnik/swagger-node-express
|
||||
|
||||
_ = require('lodash')
|
||||
nconf = require('nconf')
|
||||
content = require('habitrpg-shared').content
|
||||
|
||||
module.exports = (swagger) ->
|
||||
|
|
@ -325,4 +326,4 @@ module.exports = (swagger) ->
|
|||
route = {spec}
|
||||
swagger["add#{route.spec.method}"](route);true
|
||||
|
||||
swagger.configure("http://localhost:3000", "0.1")
|
||||
swagger.configure(nconf.get('BASE_URL'), "0.1")
|
||||
Loading…
Reference in a new issue