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

jigintern/online-2024-e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

online-2024-e

Backend

You can import the API entrypoints and the cocktail type with the following code:

import { hc } from "hono/client";
import type { API } from "/src/api/mod.ts";
import type { Cocktail, Message } from "/src/api/utils/types.ts";

const client = hc<API>("/api");

For more information, see the Hono RPC documentation.