Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
fix typo and change .js to .ts
  • Loading branch information
alanb-sony authored Oct 15, 2020
1 parent 61c9b56 commit b05d935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm run test
## How do I modify the example API and make it my own?

There are two key files:
1. `server/routes.js` - This references the implementation of all of your routes. Add as many routes as you like and point each route your express handler functions.
1. `server/routes.ts` - This references the implementation of all of your routes. Add as many routes as you like and point each route your express handler functions.
2. `server/common/api.yaml` - This file contains your [OpenAPI spec](https://swagger.io/specification/). Describe your API here. It's recommended that you to declare any and all validation logic in this YAML. `express-no-stress-typescript` uses [express-openapi-validator](https://github.com/cdimascio/express-openapi-validator) to automatically handle all API validation based on what you've defined in the spec.

## Install Dependencies
Expand Down Expand Up @@ -71,7 +71,7 @@ npm run test:debug
```

## Try It
* Open you're browser to [http://localhost:3000](http://localhost:3000)
* Open your browser to [http://localhost:3000](http://localhost:3000)
* Invoke the `/examples` endpoint
```shell
curl http://localhost:3000<%= apiRoot %>/examples
Expand Down

0 comments on commit b05d935

Please sign in to comment.