teste rota /mmpSearch/api/
This commit is contained in:
1 parent
8526d74eca
commit
879ec3cb7b
2 files changed
+10
-11
No files matched your search
+2
-3
@@ -8,7 +8,6 @@ permalink: /samples/
|
||||
|
||||
<main class="main-content">
|
||||
<div class="publication">
|
||||
{% include modal_login.html %}
|
||||
|
||||
<div class="container">
|
||||
<br />
|
||||
@@ -302,7 +301,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
try {
|
||||
console.log("Verificando autenticação...");
|
||||
// Verifica auth via Proxy Apache
|
||||
const res = await fetch('/mmpSearch/api/check_auth');
|
||||
const res = await fetch('/api/check_auth');
|
||||
const authData = await res.json();
|
||||
|
||||
console.log("Status do usuário:", authData);
|
||||
@@ -715,7 +714,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
}
|
||||
|
||||
// URL CORRIGIDA: Usando Proxy reverso (sem porta 33002)
|
||||
const API_URL = '/mmpSearch/api/upload/sample';
|
||||
const API_URL = '/api/upload/sample';
|
||||
|
||||
// UI Loading
|
||||
confirmUploadBtn.classList.add('is-loading');
|
||||
|
||||
Reference in new issue
Block a user