re: require authorization for items list
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 7s
Build and Deploy API / build-and-deploy (push) Successful in 10s

This commit is contained in:
2026-03-22 01:21:50 -05:00
parent 10ac1a6076
commit eb94a1bcb9
2 changed files with 3 additions and 3 deletions

View File

@@ -15,13 +15,13 @@ public class ItemsController : ControllerBase {
service_ = service;
}
[[Authorize]]
[Authorize]
[HttpGet]
public async Task<ActionResult<List<Item>>> getItems() {
return Ok(await service_.GetAll());
}
[[Authorize]]
[Authorize]
[HttpGet("{id:int}")]
public async Task<ActionResult<Item>> getItem(int id) {