Skip to content

Commit

Permalink
add .default property to require in docs
Browse files Browse the repository at this point in the history
Will be removed when #81 is solved
  • Loading branch information
eladav authored Dec 3, 2019
1 parent ef78a1b commit 6f2473c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Now open the folder in your favorite IDE. Open `index.js` and write this code in

```javascript
const express = require('express');
const dynamico = require('@dynamico/express-middleware');
const dynamico = require('@dynamico/express-middleware').default;

const storageProvider = /*Initialize your storage provider*/
const dynamicoMiddleware = dynamico(storageProvider);
Expand Down Expand Up @@ -66,7 +66,7 @@ app.use('some/path', someHandler);

Open or create the file and add this `require` statements to the file:
```javascript
const dynamico = require('@dynamico/express-middleware');
const dynamico = require('@dynamico/express-middleware').default;
```

And create a handler and add a route to the app (this code assumes that you initialized an express router):
Expand Down

0 comments on commit 6f2473c

Please sign in to comment.