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