feat(auth): Endpunkt-Routen für Login konsistenter gemacht
- `~/login` zu `login` und `~/{consumerRoute}/login` zu `{consumerRoute}/login` geändert.
This commit is contained in:
parent
ccd716badb
commit
ffad37a517
@ -100,7 +100,7 @@ namespace DigitalData.Auth.API.Controllers
|
||||
}
|
||||
|
||||
//TODO: Add role depends on group name
|
||||
[HttpPost("~/{consumerRoute}/login")]
|
||||
[HttpPost("{consumerRoute}/login")]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> Login([FromForm] LogInDto login, [FromRoute] string consumerRoute)
|
||||
{
|
||||
@ -115,7 +115,7 @@ namespace DigitalData.Auth.API.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpPost("~/login")]
|
||||
[HttpPost("login")]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> Login([FromForm] ConsumerApiLogin login)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user