Update develop.md

* Eliminate unnecessary URL path parts.
* Preserve mock endpoints because it's unnecessary to remove them.
This commit is contained in:
Matthew McClure 2021-02-01 13:33:38 -05:00 committed by GitHub
parent 6bfb54843c
commit 1be59f2fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -175,7 +175,7 @@ If all goes will you should see something similar:
Now lets test our API endpoint. Run the following curl command:
```shell
$ curl --request GET --url http://localhost:8000/services/m/notes
$ curl --request GET --url http://localhost:8000/notes
```
You should receive the following response:
@ -198,13 +198,7 @@ Click the **Open dedicated DevTools for Node** link. This opens the DevTools tha
Lets change the source code and then set a breakpoint.
Remove the following code from the server.js file.
```javascript
server.use( '/', mocks.server( server.Router(), false, false ) )
```
Add the following code instead, and save the file.
Add the following code above the existing `server.use()` statement, and save the file.
```node
server.use( '/foo', (req, res) => {