Skip to content

Commit

Permalink
Update helper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lassejlv authored May 7, 2024
1 parent d518bd8 commit 689efdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/helper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from "path/posix";

async function SendJSON(json: any, status: number = 200): Promise<Response> {
async function SendJSON(json: object, status: number = 200): Promise<Response> {
return new Response(JSON.stringify(json), {
headers: {
"Content-Type": "application/json"
Expand Down Expand Up @@ -61,4 +61,4 @@ function Html(html: string, status: number = 200): Response {
});
}

export { SendJSON, Success, Failure, ServerFailure, Redirect, Html, SendFile };
export { SendJSON, Success, Failure, ServerFailure, Redirect, Html, SendFile };

0 comments on commit 689efdf

Please sign in to comment.