Changeset b373fea for ChapterX.API/Controllers/AdminsController.cs
- Timestamp:
- 06/23/26 15:20:39 (12 days ago)
- Branches:
- main
- Children:
- 0b502c2
- Parents:
- d300631
- File:
-
- 1 edited
-
ChapterX.API/Controllers/AdminsController.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.API/Controllers/AdminsController.cs
rd300631 rb373fea 40 40 41 41 [HttpPost] 42 [Authorize ]42 [Authorize(Roles = "Admin")] 43 43 public async Task<ActionResult> Add([FromBody] AddRequest request) 44 44 { … … 49 49 50 50 [HttpPut("{id:int}")] 51 [Authorize ]51 [Authorize(Roles = "Admin")] 52 52 public async Task<ActionResult> Update(int id, [FromBody] UpdateRequest request) 53 53 { … … 63 63 64 64 [HttpDelete("{id:int}")] 65 [Authorize ]65 [Authorize(Roles = "Admin")] 66 66 public async Task<ActionResult> Delete(int id) 67 67 {
Note:
See TracChangeset
for help on using the changeset viewer.
