New places can again be created in the mp client, and used when creating a new note, fixes issue #47

This commit is contained in:
Jonny Barnes 2017-07-06 19:43:43 +01:00
parent cd0e7659f1
commit 3e4bd16db4
10 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@ export default function submitNewPlace(map) {
formData.append('place-latitude', document.querySelector('#place-latitude').value);
formData.append('place-longitude', document.querySelector('#place-longitude').value);
//post the new place
fetch('/places/new', {
fetch('/micropub/places', {
//send cookies with the request
credentials: 'same-origin',
method: 'post',