Skip to content

Instantly share code, notes, and snippets.

------------------------------------------------------------------------------------
/src/routes/api/hello.ts
import { type RequestEvent, type RequestHandler } from '@builder.io/qwik-city';
export const onGet: RequestHandler = async ({ json }) => {
json(200, { hello: 'world GET' });
};
export const onPost: RequestHandler = async (requestEvent: RequestEvent) => {

I hereby claim:

  • I am esdee on github.
  • I am shashydass (https://keybase.io/shashydass) on keybase.
  • I have a public key whose fingerprint is 2860 4E3B 7D2B DE0A E4AD ED5C 7D95 62A3 0543 2611

To claim this, I am signing this object:

{