Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
add GetApp endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fisher <[email protected]>
  • Loading branch information
bacongobbler committed Aug 9, 2022
1 parent 703bd35 commit 53757db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Web/Api/AppsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public async Task<ActionResult<Page<AppItem>>> Index(
});
}

[HttpGet("{id}")]
public async Task<ActionResult<AppItem>> GetApp(Guid id)
{
return await Mediator.Send(new GetAppQuery { Id = id });
}

[HttpPost]
public async Task<ActionResult<Guid>> Create([FromBody] CreateAppCommand command)
{
Expand Down

0 comments on commit 53757db

Please sign in to comment.