Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Test/pingign route #399

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/api/test/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export async function POST(request: Request) {
console.log("current time", new Date().toLocaleTimeString());
console.log("request.json()", await request.json());

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.

return new Response("Hello world!");
}
18 changes: 11 additions & 7 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"crons": [
{
"path": "/api/cron",
"schedule": "0 0 1 * *"
}
]
}
"crons": [
{
"path": "/api/cron",
"schedule": "0 0 1 * *"
},
{
"path": "/api/test",
"schedule": "0 1 1 * *"
}
]
}