mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 19:29:27 +00:00
18 lines
518 B
TypeScript
18 lines
518 B
TypeScript
import axios from 'axios';
|
|
import config from '../config';
|
|
import { GetBuildResponse } from '../types/asu';
|
|
|
|
const asu = {
|
|
buildNew: (packages: string[], target: string, profile: string, version: string) =>
|
|
axios.post<GetBuildResponse>(`${config.asu_url}/api/build`, {
|
|
target,
|
|
version,
|
|
profile,
|
|
packages,
|
|
diff_packages: true,
|
|
}),
|
|
checkBuild: (request_hash: string) =>
|
|
axios.get<GetBuildResponse>(`${config.asu_url}/api/build/${request_hash}`),
|
|
};
|
|
|
|
export default { asu };
|