Skip to content

Latest commit

 

History

History
executable file
·
17 lines (14 loc) · 329 Bytes

README.md

File metadata and controls

executable file
·
17 lines (14 loc) · 329 Bytes

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`)
  }
}