sdk-lord-of-the-rings
Version:
```bash npm i sdk-lord-of-the-rings ```
21 lines (17 loc) • 647 B
JavaScript
;
import Book from './entity/book.js';
import Chapter from './entity/chapter.js';
import Character from './entity/character.js';
import Movie from './entity/movie.js';
import Quote from './entity/quote.js';
class LordSDK {
constructor(options = {}) {
const { token } = options;
this.book = new Book({ path: '/book', token });
this.chapter = new Chapter({ path: '/chapter', token });
this.character = new Character({ path: '/character', token });
this.movie = new Movie({ path: '/movie', token });
this.quote = new Quote({ path: '/quote', token });
}
}
export default LordSDK;