Skip to content

Commit

Permalink
defaultAuth false, get info from api object
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred J. Kwak committed Feb 12, 2017
1 parent 8e28d2b commit c94fe44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generators/app/templates/server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Api = new Restivus({
defaultHeaders: {
'Content-Type': 'application/json'
},
useDefaultAuth: true,
useDefaultAuth: false,
prettyJson: true,
enableCors: true
});
Expand All @@ -17,8 +17,8 @@ Api.swagger = {
meta: {
swagger: '2.0',
info: {
version: '<%= version %>',
title: '<%= title %>'
version: '<%= api.info.version %>',
title: '<%= api.info.title %>'
}
}
};
Expand Down

0 comments on commit c94fe44

Please # to comment.