Skip to content

Commit

Permalink
chore(example-todo): update to reflect auto-generated index file
Browse files Browse the repository at this point in the history
Signed-off-by: Taranveer Virk <[email protected]>
  • Loading branch information
virkt25 committed May 26, 2018
1 parent 990e686 commit 39ce15c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 7 additions & 4 deletions docs/site/todo-tutorial-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ logic will live_!

### Create your controller

So, let's create a controller to handle our Todo routes. Inside the
`src/controllers` directory create the following two files:
So, let's create a controller to handle our Todo routes. You can create an empty
Controller using the CLI as follows:

- `index.ts` (export helper)
- `todo.controller.ts`
```sh
lb4 controller
? Controller class name: todo
? What kind of controller would you like to generate? Empty Controller
```

In addition to creating the handler functions themselves, we'll also be adding
decorators that setup the routing as well as the expected parameters of incoming
Expand Down
7 changes: 3 additions & 4 deletions examples/todo/src/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright IBM Corp. 2017,2018. All Rights Reserved.
// Node module: @loopback/example-todo
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
// This is an auto-generated file. DO NOT EDIT.

export * from './todo.controller';

// This is an auto-generated file. DO NOT EDIT.

0 comments on commit 39ce15c

Please sign in to comment.