Website/db/app/api/greetingsQueue.ts
Mangiang 4b26395870
Some checks failed
continuous-integration/drone/push Build is failing
chore: work in progress
2022-05-06 21:05:02 -04:00

14 lines
297 B
TypeScript

import { Queue } from "quirrel/blitz"
export interface Greetings {
to: string
message: string
}
export default Queue(
"api/greetingsQueue", // the path of this API route
async ({ to, message }: Greetings) => {
console.log(`Greetings, ${to}! Thy ears shall hear: "${message}"`)
}
)