Feature: Update Pin via drf-api

This commit is contained in:
winkidney
2019-02-21 15:12:37 +08:00
parent da8bac1491
commit 9741f0311a
3 changed files with 6 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ function getPinData(pinId) {
function deletePinData(pinId) {
var apiUrl = '/api/v1/pin/'+pinId+'/?format=json';
var apiUrl = API_BASE + 'pins/' +pinId + '/?format=json';
return $.ajax(apiUrl, {
type: 'DELETE'
});