Ignore:
Timestamp:
10/27/25 15:20:33 (11 months ago)
Author:
stefansaveski <stefansaveski19@…>
Branches:
master
Children:
c0256f3
Parents:
5eb7847
Message:

Add user-related models, services, and JWT validation

Added ContactInfo, EnrollmentInfo, and HighSchool models with relationships to the User entity. Updated AppDbContext and migrations to reflect these changes. Introduced UserService and IUserService for handling user data retrieval via JWT validation. Added UserController with a getUser endpoint to fetch user data based on JWT.

Enhanced IUserRepository and UserRepository with a method to fetch users by ID. Registered UserService in the DI container. Defined enums for EnrollmentInfo and HighSchool. Removed outdated migration files and performed general refactoring and cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Program.cs

    r5eb7847 r4f5d8fd  
    4343builder.Services.AddScoped<IAuthService, AuthService>();
    4444builder.Services.AddScoped<IUserRepository, UserRepository>(); // You'll need to add the UserRepository implementation
     45builder.Services.AddScoped<IUserService, UserService>();
     46
    4547builder.Services.AddAuthorization();
    4648var app = builder.Build();
Note: See TracChangeset for help on using the changeset viewer.