Changes in iknow-api/Program.cs [b38c39c:3347c1b]
- File:
-
- 1 edited
-
iknow-api/Program.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Program.cs
rb38c39c r3347c1b 1 1 using System.Text; 2 using System.Text.Json.Serialization;3 2 using iknow_api.Data; 4 3 using iknow_api.Repositories; … … 34 33 }); 35 34 // Add services to the container. 36 builder.Services.AddControllers() 37 .AddJsonOptions(options => 38 { 39 options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles; 40 }); 35 builder.Services.AddControllers(); 41 36 builder.Services.AddOpenApi(); 42 37 … … 47 42 // Register your services 48 43 builder.Services.AddScoped<IAuthService, AuthService>(); 49 builder.Services.AddScoped<I UserRepository, UserRepository>(); // You'll need to add the UserRepository implementation50 builder.Services.AddScoped<IUser Service, UserService>();51 44 builder.Services.AddScoped<IRefreshTokenService, RefreshTokenService>(); 45 builder.Services.AddScoped<IUserRepository, UserRepository>(); 46 builder.Services.AddScoped<IRefreshTokenRepository, RefreshTokenRepository>(); 52 47 builder.Services.AddAuthorization(); 53 48 var app = builder.Build();
Note:
See TracChangeset
for help on using the changeset viewer.
