Ignore:
Timestamp:
10/23/25 15:32:17 (11 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
e49c3ed
Parents:
0b16523 (diff), c7d4a59 (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:
Stefan Saveski <76560180+stefansaveski@…> (10/23/25 15:32:17)
git-committer:
GitHub <noreply@…> (10/23/25 15:32:17)
Message:

Merge pull request #2 from stefansaveski/feature/auth-system-integration

Feature/auth system integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Program.cs

    r0b16523 r9538edc  
     1using Microsoft.EntityFrameworkCore;
     2using iknow_api.Core.Data;
     3using iknow_api.Services;
     4using iknow_api.Repositories;
     5
    16var builder = WebApplication.CreateBuilder(args);
    27
    38// Add services to the container.
     9builder.Services.AddControllers();
     10builder.Services.AddOpenApi();
    411
    5 builder.Services.AddControllers();
    6 // Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
    7 builder.Services.AddOpenApi();
     12// Register DbContext
     13builder.Services.AddDbContext<AppDbContext>(options =>
     14    options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection")));
     15
     16// Register your services
     17builder.Services.AddScoped<IAuthService, AuthService>();
     18builder.Services.AddScoped<IUserRepository, UserRepository>(); // You'll need to add the UserRepository implementation
    819
    920var app = builder.Build();
     
    1627
    1728app.UseHttpsRedirection();
    18 
    1929app.UseAuthorization();
    20 
    2130app.MapControllers();
    2231
Note: See TracChangeset for help on using the changeset viewer.