Fix route index JavaScript rendering

This commit is contained in:
2026-05-21 22:18:21 -05:00
parent 90c68a69b1
commit 98e5635eb7

View File

@@ -429,7 +429,7 @@ Route::get('/', function () {
const token = tokenInput.value.trim();
if ((authType === 'jwt' || authType === 'diagnostic') && token) {
headers.Authorization = `Bearer ${token}`;
headers.Authorization = 'Bearer ' + token;
}
if ((authType === 'jwt' || authType === 'diagnostic') && !token) {
@@ -445,7 +445,7 @@ Route::get('/', function () {
? JSON.stringify(await response.json(), null, 2)
: await response.text();
showResult(url, `${response.status} ${response.statusText}`, body);
showResult(url, response.status + ' ' + response.statusText, body);
} catch (error) {
showResult(url, 'Erro', error.message);
}