Skip to content

Commit

Permalink
Merge pull request #85 from MSK61/patch-1
Browse files Browse the repository at this point in the history
doc(README): update the module usage example
  • Loading branch information
wzr1337 committed Mar 25, 2019
2 parents f14e59a + 775c1a4 commit bef7b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -29,11 +29,11 @@ While there is a [RSI Demo](https://github.com/wzr1337/rsi.demo) available, a mi

```typescript
import { RsiServer } from '@rsi/server';
import * as ml from '@rsi-plugins/medialibrary';
import * as m from '@rsi-plugins/media';

const server: RsiServer = new RsiServer();
server.run(); // run the server
server.addService(new ml.Service()); // add a single service
server.addService(m.Medialibrary.getInstance()); // add a single service
```

accessing `http://127.0.0.1:3000` will give you the following response:
Expand All @@ -44,7 +44,7 @@ accessing `http://127.0.0.1:3000` will give you the following response:
"data": [
{
"id": "ea65d5eb-d5fb-4ceb-a568-ed24fcf37e20",
"name": "medialibrary",
"name": "Medialibrary",
"uri": "/medialibrary/"
}
]
Expand Down

0 comments on commit bef7b7b

Please sign in to comment.