Some stuff
This commit is contained in:
@@ -44,5 +44,10 @@ namespace KTUSAPS.Controllers
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[HttpGet("Authed")]
|
||||
public bool IsAuthed() => true;
|
||||
|
||||
[Authorize("admin")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[HttpGet("Admin")]
|
||||
public bool IsAdmin() => true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user