Overview
The service exposes two HTTP endpoints built with Hono framework.GET /healthcheck
Health check endpoint to verify the service is running.Request
No parameters required
Response
Returns “Running!” with HTTP 200 status
Example
Response Example
Source Code
server.ts (lines 6-8)
GET /get-rss-feed
Triggers the RSS feed processing workflow. Fetches the latest Shopify changelog entries, filters for new items, and sends them to Google Chat.Request
No parameters required
Response
Returns “Done!” with HTTP 200 status after processing completes
Behavior
This endpoint:- Calls
handleRSSFeed()to orchestrate the entire workflow - Fetches RSS feed from
https://shopify.dev/changelog/feed.xml - Filters items newer than the last processed date (defaults to yesterday)
- Sends new items to Google Chat via webhook (if any exist)
- Returns after completion (synchronous processing)
Environment Variables Required
Environment Variables Required
Example
Response Example
Error Handling
If
WEBHOOK_URL is not set, the endpoint will throw:If the Google Chat webhook request fails:
Source Code
server.ts (lines 10-13)
Server Configuration
The server is built using Hono, a lightweight web framework for the edge.server.ts
Running the Server
- Bun
- Docker