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

@@ -42,6 +42,7 @@ namespace weddingapi.Controllers
}
// GET /contact/{id}
[DevelopmentOnly]
[HttpGet("{id}")]
public async Task<ActionResult<ContactDto>> GetContactAsync(Guid id)
{
@@ -56,6 +57,7 @@ namespace weddingapi.Controllers
}
// Delete /contact/{id}
[DevelopmentOnly]
[HttpDelete("{id}")]
public async Task<ActionResult> DeleteContactAsync(Guid id)
{
@@ -72,6 +74,7 @@ namespace weddingapi.Controllers
}
// GET /contacts
[DevelopmentOnly]
[HttpGet]
public async Task<IEnumerable<ContactDto>> GetContactsAsync()
{