Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yieldspace/tofu-on-hono

A file based router for hono.
https://github.com/yieldspace/tofu-on-hono

cloudflare-workers hono router typescript

Last synced: 11 days ago
JSON representation

A file based router for hono.

Awesome Lists containing this project

README

        

# tofu-on-hono[WIP]

tofu-on-hono is a file based router for hono.

# Usage

It can use as vite plugin.
Route directory is `src/routes`.

```typescript
import {Handler} from "tofu-on-hono";

export default ((router) => router.get(
async ctx => {
return ctx.jsonT({
hello: "world!"
})
}
)) satisfies Handler
```

see examples.