Changeset 4708118 for iknow-api/Program.cs
- Timestamp:
- 10/28/25 10:51:44 (11 months ago)
- Branches:
- master
- Children:
- f8af32b
- Parents:
- c2e73b6 (diff), ff202cf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Boris Gjorgjievski <69085722+imbrsk@…> (10/28/25 10:51:44)
- git-committer:
- GitHub <noreply@…> (10/28/25 10:51:44)
- File:
-
- 1 edited
-
iknow-api/Program.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Program.cs
rc2e73b6 r4708118 1 1 using System.Text; 2 using System.Text.Json.Serialization; 2 3 using iknow_api.Data; 3 4 using iknow_api.Repositories; … … 33 34 }); 34 35 // Add services to the container. 35 builder.Services.AddControllers(); 36 builder.Services.AddControllers() 37 .AddJsonOptions(options => 38 { 39 options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles; 40 }); 36 41 builder.Services.AddOpenApi(); 37 42 … … 42 47 // Register your services 43 48 builder.Services.AddScoped<IAuthService, AuthService>(); 49 builder.Services.AddScoped<IUserRepository, UserRepository>(); // You'll need to add the UserRepository implementation 50 builder.Services.AddScoped<IUserService, UserService>(); 51 44 52 builder.Services.AddScoped<IRefreshTokenService, RefreshTokenService>(); 45 53 builder.Services.AddScoped<IUserRepository, UserRepository>();
Note:
See TracChangeset
for help on using the changeset viewer.
