dev only mode

This commit is contained in:
Julian
2022-06-03 21:17:42 +02:00
parent 9e38cfd25d
commit 65bb61eee1
4 changed files with 30 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ namespace weddingapi.Controllers
}
// GET /family
[DevelopmentOnly]
[HttpGet]
public async Task<IEnumerable<FamilyDto>> GetFamiliesAsync()
{
@@ -42,6 +43,7 @@ namespace weddingapi.Controllers
}
// GET /family/{id}
[DevelopmentOnly]
[HttpGet("{id}")]
public async Task<ActionResult<FamilyDto>> GetFamilyAsync(Guid id)
{
@@ -80,6 +82,7 @@ namespace weddingapi.Controllers
}
// PUT /family/{id}
[DevelopmentOnly]
[HttpPut("{id}")]
public async Task<ActionResult> UpdateFamilyAsync(Guid id, UpdateFamilyDto familyDto)
{
@@ -108,6 +111,7 @@ namespace weddingapi.Controllers
}
// Delete /family/{id}
[DevelopmentOnly]
[HttpDelete("{id}")]
public async Task<ActionResult> DeleteFamilyAsync(Guid id)
{