From 69199e1388ef85e09d5b69dc26fdd83d0756dd26 Mon Sep 17 00:00:00 2001 From: Zak Henry Date: Wed, 6 Jul 2016 12:19:46 +0100 Subject: [PATCH] fix(docs): Fix routing docs now @RouteBase is deprecated --- docs/guide/routing.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/guide/routing.md b/docs/guide/routing.md index 417fd07..e6e4923 100644 --- a/docs/guide/routing.md +++ b/docs/guide/routing.md @@ -7,13 +7,15 @@ collectionSort: 1 layout: guide.hbs --- -Routing is defined in the backend controllers using the `@Route` and `@RouteBase` decorators. +Routing is defined in the backend controllers using the `@Route` decorator. In the following controller example, the route base is set to `example` and the method action is set to `/test`. ``` @Injectable() -@RouteBase('example') +@Controller({ + routeBase: 'example', +}) export class TestController extends AbstractController { constructor(server: Server, logger: Logger) {