Feature: Use drf-api for Pin-creation

This commit is contained in:
winkidney
2019-02-21 17:45:22 +08:00
parent 6f6d858f8c
commit 4029107b5d
2 changed files with 7 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ function deletePinData(pinId) {
function postPinData(data) {
return $.ajax({
type: "post",
url: "/api/v1/pin/",
url: API_BASE + "pins/",
contentType: 'application/json',
data: JSON.stringify(data)
});