Ignore:
Timestamp:
10/28/25 10:51:44 (11 months ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #6 from stefansaveski/feature/getUser

Feature/get user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Program.cs

    rc2e73b6 r4708118  
    11using System.Text;
     2using System.Text.Json.Serialization;
    23using iknow_api.Data;
    34using iknow_api.Repositories;
     
    3334});
    3435// Add services to the container.
    35 builder.Services.AddControllers();
     36builder.Services.AddControllers()
     37    .AddJsonOptions(options =>
     38    {
     39        options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles;
     40    });
    3641builder.Services.AddOpenApi();
    3742
     
    4247// Register your services
    4348builder.Services.AddScoped<IAuthService, AuthService>();
     49builder.Services.AddScoped<IUserRepository, UserRepository>(); // You'll need to add the UserRepository implementation
     50builder.Services.AddScoped<IUserService, UserService>();
     51
    4452builder.Services.AddScoped<IRefreshTokenService, RefreshTokenService>();
    4553builder.Services.AddScoped<IUserRepository, UserRepository>();
Note: See TracChangeset for help on using the changeset viewer.