Merge branch 'main' into feature-refresh-tokens
# Conflicts: # dotnet/AipsWebApi/Controllers/UserController.cs
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using AipsCore.Application.Abstract;
|
||||
using AipsCore.Application.Common.Authentication.Dtos;
|
||||
using AipsCore.Application.Abstract.MessageBroking;
|
||||
using AipsCore.Application.Common.Authentication;
|
||||
using AipsCore.Application.Models.User.Command.LogIn;
|
||||
using AipsCore.Application.Models.User.Command.LogOut;
|
||||
using AipsCore.Application.Models.User.Command.LogOutAll;
|
||||
@@ -60,4 +62,11 @@ public class UserController : ControllerBase
|
||||
await _dispatcher.Execute(command, cancellationToken);
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost("test")]
|
||||
public async Task Test(IMessagePublisher publisher)
|
||||
{
|
||||
await publisher.PublishAsync("Test poruka");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user