-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start work on authorization for front end
- Loading branch information
1 parent
c195925
commit 872eac9
Showing
21 changed files
with
456 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Bones.Api.Controllers; | ||
|
||
/// <summary> | ||
/// Handles organizations | ||
/// </summary> | ||
public class OrganizationController(ISender sender) : BonesControllerBase(sender) | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Bones.Api.Models; | ||
using Bones.Shared.Consts; | ||
using Microsoft.AspNetCore.Authorization; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Bones.Api.Controllers; | ||
|
||
/// <summary> | ||
/// Handles SysAdmin stuffs | ||
/// </summary> | ||
[Authorize(Roles = SystemRoles.SYSTEM_ADMINISTRATORS)] | ||
public class SysAdminController(ISender sender) : BonesControllerBase(sender) | ||
{ | ||
/// <summary> | ||
/// Ping, pong! | ||
/// </summary> | ||
/// <returns>Super secret passphrase that should absolutely never be shared under any circumstances.</returns> | ||
[HttpPost("ping", Name = "PingAsync")] | ||
[ProducesResponseType<string>(StatusCodes.Status200OK)] | ||
public ActionResult<string> PingAsync() | ||
{ | ||
return "pong"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Bones.Api.Controllers; | ||
|
||
/// <summary> | ||
/// Handles work items | ||
/// </summary> | ||
/// <param name="sender"></param> | ||
public class WorkItemController(ISender sender) : BonesControllerBase(sender) | ||
{ | ||
|
||
} |
Oops, something went wrong.