feat: Implement delete step rest API endpoint
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export default async (request, response) => {
|
||||
const step = await request.currentUser.authorizedSteps
|
||||
.findById(request.params.stepId)
|
||||
.throwIfNotFound();
|
||||
|
||||
await step.delete();
|
||||
|
||||
response.status(204).end();
|
||||
};
|
Reference in New Issue
Block a user