mirror of
https://github.com/reactos/developer-web-interface.git
synced 2024-11-23 03:49:43 +00:00
api modifs
This commit is contained in:
parent
7f1457076c
commit
2b677d9d57
@ -34,6 +34,15 @@ export const fetchBuilds = async str => {
|
||||
return data.builds;
|
||||
};
|
||||
|
||||
export const fetchBuilders = async () => {
|
||||
const response = await fetch('/api/builders');
|
||||
const data = await response.json();
|
||||
if (response.status >= 400) {
|
||||
throw new Error(data.errors);
|
||||
}
|
||||
return data;
|
||||
};
|
||||
|
||||
export const fetchBranches = async () => {
|
||||
const response = await fetch('/api/branches');
|
||||
const data = await response.json();
|
||||
|
Loading…
Reference in New Issue
Block a user