fix profile
This commit is contained in:
@@ -16,8 +16,13 @@ class PackageDataProvider {
|
||||
payload: {"packages": json, "fcs_id": fcsID}, token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> createPackage(Package package) async {
|
||||
return await requestAPI("/package", "POST",
|
||||
payload: package.toJson(), token: await getToken());
|
||||
}
|
||||
|
||||
Future<void> deletePackage(Package package) async {
|
||||
return await requestAPI("/packages", "DELETE",
|
||||
return await requestAPI("/package", "DELETE",
|
||||
payload: {"id": package.id}, token: await getToken());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user