24 lines
563 B
HTML
24 lines
563 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><title>Test</title></head>
|
|
<body>
|
|
<h1>Testando Admin-V2</h1>
|
|
<pre id="log"></pre>
|
|
<script>
|
|
const log = document.getElementById('log');
|
|
fetch('/api/admin/me', { credentials: 'include', headers: { 'Accept': 'application/json' } })
|
|
.then(r => {
|
|
log.textContent += `Status: ${r.status}\n`;
|
|
return r.json();
|
|
})
|
|
.then(d => {
|
|
log.textContent += `Response: ${JSON.stringify(d)}\n`;
|
|
})
|
|
.catch(e => {
|
|
log.textContent += `Error: ${e.message}\n`;
|
|
});
|
|
log.textContent = 'Teste iniciado...\n';
|
|
</script>
|
|
</body>
|
|
</html>
|