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`)
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
React Api Transfer Manager (wrapper for action requests)
sanv92/React-api-transfer-manager
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
React Api Transfer Manager (wrapper for action requests)
Resources
Stars
Watchers
Forks
Releases
No releases published