mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 22:29:28 +00:00
add ASU compatibility
This commit is contained in:
parent
a0aedf1563
commit
7cdb5206af
22 changed files with 2282 additions and 1427 deletions
17
src/utils/api.ts
Normal file
17
src/utils/api.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import axios from 'axios';
|
||||
import config from '../config';
|
||||
import { GetBuildResponse } from '../types/asu';
|
||||
|
||||
const asu = {
|
||||
buildNew: (packages: string[], profile: string, version: string) =>
|
||||
axios.post<GetBuildResponse>(`${config.asu_url}/api/build`, {
|
||||
version,
|
||||
profile,
|
||||
packages,
|
||||
diff_packages: true,
|
||||
}),
|
||||
checkBuild: (request_hash: string) =>
|
||||
axios.get<GetBuildResponse>(`${config.asu_url}/api/build/${request_hash}`),
|
||||
};
|
||||
|
||||
export default { asu };
|
||||
Loading…
Add table
Add a link
Reference in a new issue