mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 18:05:51 +01:00
Feature: Add pin delete function
This commit is contained in:
committed by
Isaac Bythewood
parent
459486932d
commit
58f778f4b4
@@ -64,6 +64,12 @@ const Pin = {
|
||||
},
|
||||
);
|
||||
},
|
||||
deleteById(pinId) {
|
||||
const url = `${API_PREFIX}pins/${pinId}/`;
|
||||
return axios.delete(
|
||||
url,
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user