Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef authored Jul 25, 2022
1 parent 399c38b commit 2196e40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export const myRouteHandler = async ({
return res({ body });
};
```
```js
const routes = {
"/users/myroute": myRouteHandler
};
```
Discuss: https://github.com/hodgef/apiker/issues/133

### 2. State: Save value to `Common` object (shared by all visitors)
Expand Down

0 comments on commit 2196e40

Please sign in to comment.