diff --git a/todo-workspace/frontend/src/app/app.config.ts b/todo-workspace/frontend/src/app/app.config.ts index 44e7ba19a428d5a3a7af6f4acf2f407c756570fa..5e3071c3fb2dfcd2c2c519c278078768f0533a51 100644 --- a/todo-workspace/frontend/src/app/app.config.ts +++ b/todo-workspace/frontend/src/app/app.config.ts @@ -4,7 +4,7 @@ import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; import { provideHttpClient } from '@angular/common/http'; import { TodoService } from '@core/ports/todo.service'; -import { InMemoryTodoService } from '@core/adapters/in-memory-todo.service'; +import { HttpTodoService } from '@core/adapters/http-todo.service'; export const appConfig: ApplicationConfig = { providers: [ @@ -14,17 +14,7 @@ export const appConfig: ApplicationConfig = { { provide: TodoService, - useFactory: () => new InMemoryTodoService(), + useFactory: () => new HttpTodoService(), }, - - /*{ - provide: TodoService, - useFactory: () => - new InMemoryTodoService().withTodos([ - new TodoBuilder().withId(1).withName('Apprendre Angular 19').uncomplete().build(), - new TodoBuilder().withId(2).withName('Apprendre Java Spring Boot').complete().build(), - new TodoBuilder().withId(3).withName('Apprendre PostgreSQL').uncomplete().build(), - ]), - },*/ ], };