1.0.1 • Published 6 years ago
api-transfer-manager v1.0.1
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`)
}
}