Files
SCM-Manager/scm-ui/src/repos/sources/containers/history.js

17 lines
339 B
JavaScript
Raw Normal View History

2018-11-26 15:56:41 +01:00
//@flow
import { apiClient } from "@scm-manager/ui-components";
export function getHistory(url: string) {
return apiClient
.get(url)
.then(response => response.json())
.then(result => {
return {
changesets: result._embedded.changesets
};
})
.catch(err => {
return { error: err };
});
}