Ignore:
Timestamp:
10/22/25 23:34:14 (11 months ago)
Author:
stefansaveski <stefansaveski19@…>
Branches:
master
Children:
9538edc
Parents:
277bd72
Message:

Refactor DTOs and remove user management

Updated AuthController to use RegisterDto and LoginDto for more specific DTO usage in registration and login methods. Removed UsersController and its methods, indicating a refactor or removal of user management functionality. Replaced UserDto with LoginDto, RegisterDto, and UserResponseDto in UserDTO.cs, and introduced a UserRole enum. Updated AuthService to use new DTOs and adjusted JWT token configuration. Removed UserService and IUserService, suggesting a redesign or deprecation of user service functionality. Updated IAuthService to align with AuthService changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Controllers/AuthController.cs

    r277bd72 rc7d4a59  
    22using iknow_api.Services;
    33using Microsoft.AspNetCore.Mvc;
    4 //test
     4
    55namespace iknow_api.Controllers
    66{
     
    3131
    3232        [HttpPost("register")]
    33         public async Task<IActionResult> Register([FromBody] UserDto request)
     33        public async Task<IActionResult> Register([FromBody] RegisterDto request)
    3434        {
    3535            var result = await _authService.RegisterAsync(request);
     
    3939
    4040        [HttpPost("login")]
    41         public async Task<IActionResult> Login([FromBody] UserDto request)
     41        public async Task<IActionResult> Login([FromBody] LoginDto request)
    4242        {
    4343            var token = await _authService.LoginAsync(request);
Note: See TracChangeset for help on using the changeset viewer.