Auth still in progress
This commit is contained in:
@@ -19,9 +19,8 @@ let headers = function(withJson) {
|
||||
if (withJson) {
|
||||
ret['Content-Type'] = 'application/json';
|
||||
}
|
||||
let accessToken = store('accessToken');
|
||||
if (accessToken) {
|
||||
ret['Authorization'] = `Bearer ${accessToken}`;
|
||||
if (apiToken) {
|
||||
ret['Authorization'] = `Bearer ${apiToken}`;
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
@@ -45,6 +45,7 @@
|
||||
<!-- error messages included as html elements so that they are translated -->
|
||||
<div id="required_field" class="hidden">Required field</div>
|
||||
<script type="text/javascript">
|
||||
const apiToken = '$!api.bearer';
|
||||
#if($tour)
|
||||
const tour_id = ${tour.id};
|
||||
const tour_rounds = ${tour.rounds};
|
||||
|
Reference in New Issue
Block a user