Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak first controller example a bit #2393

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/getting-started/create-your-first-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ See [Controllers](/docs/controllers.md) section for more details
You have to configure [engine rendering](/tutorials/templating) if you want to use the decorator @@Render@@.
:::

To test your method, just run your `server.ts` and send an HTTP request on `/rest/calendars/1`.
The `CalendarCtrl` you just added needs to be connected by exporting it. Find a `index.ts` in my case in the `/rest/` folder and add the following line:

```
export * from "./CalendarCtrl";
```

To test your method, just run your `server.ts` and send an HTTP request on `/rest/calendars/`.

### Ready for More?

Expand Down
Loading