[DEPLOY] Migrazione a subdomain nis2.certisource.it

Rimozione prefisso /nis2/ da tutti i path frontend e router:
- index.php: basePath '' (da '/nis2')
- api.js: baseUrl '/api' (da '/nis2/api')
- Tutti i file HTML: path assoluti senza prefisso /nis2/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-02-19 14:05:18 +01:00
co-authored by Claude Sonnet 4.6
parent 92f9366ef4
commit ba21534e6a
14 changed files with 73 additions and 73 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
*/
class NIS2API {
constructor(baseUrl = '/nis2/api') {
constructor(baseUrl = '/api') {
this.baseUrl = baseUrl;
this.token = localStorage.getItem('nis2_access_token');
this.refreshToken = localStorage.getItem('nis2_refresh_token');
@@ -103,7 +103,7 @@ class NIS2API {
logout() {
this.post('/auth/logout', {}).catch(() => {});
this.clearTokens();
window.location.href = '/nis2/login.html';
window.location.href = '/login.html';
}
getMe() { return this.get('/auth/me'); }