Skip to content

Commit

Permalink
fix typos on create-your-first-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
LorianeE committed Oct 12, 2020
1 parent 4c490b4 commit 4d54b9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started/create-your-first-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ meta:
# Create your first controller

Create a new `CalendarCtrl.ts` in your controllers directory (by default `root/controllers`).
All controllers declared with @@Controller@@ decorators are considered as Express routers.
An Express router requires a path (here, the path is `/calendars`) to expose an url on your server.
All controllers declared with @@Controller@@ decorators are considered as Platform routers (Express.Router, Koa.Router, ...).
A Platform router requires a path (here, the path is `/calendars`) to expose an url on your server.
More precisely, it's a part of a path, and the entire exposed url depends on the Server configuration (see [Configuration](configuration.md))
and the [children controllers](/docs/controllers.md).

Expand All @@ -22,7 +22,7 @@ So the controller's url will be `http://host/rest/calendars`.
<<< @/docs/docs/snippets/controllers/basic-controller.ts

::: tip
Decorators @@Get@@, @@Post@@, @@Delete@@, @@Put@@, etc..., support dynamic pathParams (eg: `/:id`) and `RegExp` like Express API.
Decorators @@Get@@, @@Post@@, @@Delete@@, @@Put@@, etc., support dynamic pathParams (eg: `/:id`) and `RegExp` like Express API.

See [Controllers](/docs/controllers.md) section for more details
:::
Expand Down

0 comments on commit 4d54b9f

Please sign in to comment.