Files
aniplay-api/README.md
2024-05-15 23:03:17 -04:00

20 lines
456 B
Markdown

```
npm install
npm run dev
```
```
npm run deploy
```
pre-commit hook for Sapling (`.sl/config`):
```
[hooks]
precommit = echo $HG_PARENT1 && bun prettier $(sl show -T "{file_adds} {file_mods}\n\n" $HG_PARENT1 --stat | head -n 1) --write
```
## Development
If a route is internal-only or doesn't need to appear on the OpenAPI spec (that's autogenerated by Hono), use the `Hono` class. Otherwise, use the `OpenAPIHono` class from `@hono/zod-openapi`.