Skip to content

Commit

Permalink
doc(READEME): update the module usage example
Browse files Browse the repository at this point in the history
The example seemed to have been written against an old version of RSI-plugins/medialibrary so it no longer built successfully. I've updated it to match the latest RSI-plugins/media public API.
  • Loading branch information
MSK61 committed Mar 19, 2019
1 parent f14e59a commit 775c1a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
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 775c1a4

Please sign in to comment.