mirror of https://github.com/Duxez/PteroPack.git
13 lines
409 B
TypeScript
13 lines
409 B
TypeScript
import http from "@/api/http";
|
|
|
|
export default (server: string, modpackId: number, fileId: number): Promise<string> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.get(`/api/client/servers/${server}/modpacks/${modpackId}/install/${fileId}`)
|
|
.then(({ data }) => {
|
|
console.log(data);
|
|
resolve(data)
|
|
})
|
|
.catch(reject);
|
|
});
|
|
}
|