npm.io
1.0.1 • Published 8 years ago

api-transfer-manager

Licence
ISC
Version
1.0.1
Deps
4
Size
22 kB
Vulns
0
Weekly
0
Stars
5

React Api Transfer Manager (wrapper for action requests)

export class NewsRepository implements NewsRepositoryInterface {
  constructor(api: ApiManager) {
    this.api = api
  }

  newsList() {
    return this.api.get('/news.json')
  }

  newsItem(slug: String) {
    return this.api.get(`/news/${slug}.json`)
  }
}