Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
fix: added https method to swager if in production
Browse files Browse the repository at this point in the history
  • Loading branch information
mentos1386 committed Jul 15, 2018
1 parent 7aa480b commit 3035135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example.env
@@ -1,3 +1,6 @@
# ENV
NODE_ENV=develop

# APP
APP_AUTHENTICATION=http://localhost:4200/authentication/callback

Expand Down
1 change: 1 addition & 0 deletions src/api.ts
Expand Up @@ -32,6 +32,7 @@ async function bootstrap() {
'Additional Resources can be found on Github Wiki',
'https://github.com/evebook/api/wiki')
.setVersion(process.env.npm_package_version)
.setSchemes(process.env.NODE_ENV === 'production' ? 'https' : 'http')
.addTag('characters')
.addTag('corporations')
.addTag('alliances')
Expand Down

0 comments on commit 3035135

Please sign in to comment.