Created JWT endpoints
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Ardalis.Specification;
|
||||
using BeReadyBackend.Models;
|
||||
|
||||
namespace BeReadyBackend.Specifications.Users;
|
||||
|
||||
public class GetUserByUsernameSpec : SingleResultSpecification<User>
|
||||
{
|
||||
public GetUserByUsernameSpec(string username)
|
||||
{
|
||||
Query
|
||||
.Where(x => x.Username == username);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user