dev only mode
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user