fix(blog): add restore path for archived posts
TaxBaik CI/CD / build-and-deploy (push) Successful in 4m57s
TaxBaik CI/CD / build-and-deploy (push) Successful in 4m57s
This commit is contained in:
@@ -97,4 +97,12 @@ public class BlogController : ControllerBase
|
||||
await _blogService.ArchiveAsync(id);
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
[HttpPost("{id}/restore")]
|
||||
[Authorize]
|
||||
public async Task<IActionResult> Restore(int id)
|
||||
{
|
||||
await _blogService.RestoreAsync(id);
|
||||
return NoContent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user