Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Thesephi committed Jun 16, 2024
1 parent fade3dd commit 4eff2b4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ deno add @oak/oak @dklab/oak-routing-ctrl
```

```ts
// main.ts

import { Application } from "@oak/oak/application";
import {
Controller,
Expand All @@ -78,7 +80,9 @@ await app.listen({ port: 1993 });

```bash
deno run --allow-env --allow-net main.ts
```

```bash
# in another terminal
curl localhost:1993/v1/hello/world # prints: hello, world
```
Expand Down Expand Up @@ -189,6 +193,8 @@ curl -H"x-foo: lorem" localhost:1993/foo/bar

</details>

---

### Other runtimes

#### Node.js
Expand Down Expand Up @@ -315,7 +321,14 @@ curl http://localhost:1993/hello/world # prints: hello, world

</details>

## Developer Resources
---

## Documentation

Documentation is hosted on the Javascript Registry:
https://jsr.io/@dklab/oak-routing-ctrl/doc

## Contributor Resources

### Tests

Expand Down

0 comments on commit 4eff2b4

Please sign in to comment.