|
@@ -355,14 +355,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Home page
|
|
// Home page
|
|
|
- return new Response(
|
|
|
|
|
- `Notion Exchange Rate Worker
|
|
|
|
|
-
|
|
|
|
|
-API Endpoints:
|
|
|
|
|
- GET /convert?from=USD&to=CNY&amount=100 - Convert currency
|
|
|
|
|
- GET /sync - Sync rates to Notion`,
|
|
|
|
|
- { headers: { 'Content-Type': 'text/plain' } }
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ return new Response("I'm a teapot", { status: 418 });
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async scheduled(event, env, ctx): Promise<void> {
|
|
async scheduled(event, env, ctx): Promise<void> {
|