Files
aniplay-api/README.md
2024-05-29 08:39:38 -04:00

20 lines
488 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 --no-error-on-unmatched-pattern
```
## 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`.