#29 refactor: replace admin code with role-based auth using Pinia
This commit is contained in:
@@ -31,10 +31,6 @@ class Api {
|
||||
return this.apiImplementation.getReconciliation(reconciliationId);
|
||||
}
|
||||
|
||||
isValidAdminCode(code) {
|
||||
return this.apiImplementation.isValidAdminCode(code);
|
||||
}
|
||||
|
||||
createPurchase(purchase) {
|
||||
return this.apiImplementation.createPurchase(purchase);
|
||||
}
|
||||
|
||||
@@ -49,11 +49,6 @@ class DjangoApi {
|
||||
return this.getRequest(url);
|
||||
}
|
||||
|
||||
isValidAdminCode(code) {
|
||||
const url = this.base + `/don_confiao/api/admin_code/validate/${code}`
|
||||
return this.getRequest(url)
|
||||
}
|
||||
|
||||
createPurchase(purchase) {
|
||||
const url = this.base + '/don_confiao/api/sales/';
|
||||
return this.postRequest(url, purchase);
|
||||
|
||||
Reference in New Issue
Block a user