Skip to content

Commit

Permalink
Add ping api
Browse files Browse the repository at this point in the history
  • Loading branch information
bortoz committed Oct 17, 2024
1 parent 1a5829d commit 5032980
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/ping/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export function GET() {
return new Response("pong", {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET",
},
});
}

2 comments on commit 5032980

@wil93
Copy link
Member

@wil93 wil93 commented on 5032980 Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bortoz We could add some headers to avoid caching the response (we try to avoid it already in the client, but having it in both wouldn't hurt)

@bortoz
Copy link
Member Author

@bortoz bortoz commented on 5032980 Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

Please sign in to comment.