Skip to content

Commit

Permalink
Testing addPages.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
azdak committed Nov 26, 2024
1 parent f93c199 commit 9dcef06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/addPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {ScanResponse, ScanResponseJob} from "#src/utils/interfaces";
export const addPages = async ({ request, reply }) => {
// check input for errors
if (!request.body.mode) {
return request.body;
return {
status: "error",
message: 'The "mode" field is required.',
Expand Down

0 comments on commit 9dcef06

Please sign in to comment.