Skip to content

Commit

Permalink
Closes #60
Browse files Browse the repository at this point in the history
Addressing PR issues
  • Loading branch information
mtracewicz committed Oct 1, 2024
1 parent c2ba0a0 commit a6818ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/Controllers/TodoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public IActionResult GetList([FromRoute] int id)
return list switch
{
null => NotFound(),
var user => Ok(list),
var l => Ok(l),
};
}

Expand Down
1 change: 1 addition & 0 deletions backend/src/api/Filters/UserIdFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace api.Filters;

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class UserIdFilter : Attribute, IAuthorizationFilter
{
public void OnAuthorization(AuthorizationFilterContext context)
Expand Down

0 comments on commit a6818ea

Please sign in to comment.