Changement dans la config pour éviter les url en dur + mise en place d'un mode démo

This commit is contained in:
2026-04-23 17:15:08 +02:00
parent e3c8232e38
commit 83ac67471e
21 changed files with 155 additions and 38 deletions

View File

@@ -8,7 +8,7 @@ import { Character, CharacterCreate } from './character.model';
*/
@Injectable({ providedIn: 'root' })
export class CharacterService {
private apiUrl = 'http://localhost:8080/api/characters';
private apiUrl = '/api/characters';
constructor(private http: HttpClient) {}