-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: correct data type on confirmation and validation (#12)
correct data type on confirmation and validation
- Loading branch information
1 parent
bed0c67
commit d09e1cf
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import { NextRequest, NextResponse } from "next/server"; | ||
|
||
export const POST = async (req: NextRequest) => { | ||
//When this API is hit it does nothing for now. The use case of this API is not currently yet defined but some facilities may register this URL. | ||
return NextResponse.json({ message: "confirmed" }, { status: 200 }); | ||
// When this API is hit it does nothing for now. | ||
// The use case of this API is not currently yet defined but some facilities may register this URL. | ||
return NextResponse.json({ | ||
ResultCode: 0, | ||
ResultDesc: "Success", | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters