Added token as query param to swagger request

This commit is contained in:
ram33 2017-09-18 17:34:32 +05:30
parent 91931b84fc
commit 28deba60ac
1 changed files with 2 additions and 2 deletions

View File

@ -37,11 +37,11 @@ $(function() {
var model = GetParameterValues('model');
var token = window.localStorage.getItem(appKey);
if (model) {
url += url.indexOf('?') > 0 ? '&' : '?' + 'model=' + model;
url += (url.indexOf('?') > 0 ? '&' : '?') + 'model=' + model;
$('body').addClass('stripped');
}
if (token) {
url += url.indexOf('?') > 0 ? '&' : '?' + 'acccess_token=' + token;
url += (url.indexOf('?') > 0 ? '&' : '?') + 'acccess_token=' + token;
}
/* eslint-disable camelcase */
window.swaggerUi = new SwaggerUi({