mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
show history table of content
This commit is contained in:
16
scm-ui/src/repos/sources/containers/history.js
Normal file
16
scm-ui/src/repos/sources/containers/history.js
Normal file
@@ -0,0 +1,16 @@
|
||||
//@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 };
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user