Skip to content

Commit

Permalink
[#501] Web: update the trails front end to use the EDAPI url rather t…
Browse files Browse the repository at this point in the history
…hen go directly to the trails service (which isn't possible remotely)
  • Loading branch information
a-stacey committed Sep 9, 2019
1 parent d898b89 commit 9748ea0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions projects/web/src/components/submitTrail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,8 @@ export function SubmitTrail(props: QueryProps) {
};

const submitTrail = () => {
// TODO: The URL here needs to be changed to props.organisation.url, but the
// EDAPI that this is currently building against doesn't support the trails
// service yet.
return signTrailEntry(newUnsignedTrailEntry).then((trailEntry) => {
return fetch('http://localhost:8300' + '/trail', {
return fetch(props.organisation.url + '/trails/trail', {
method: 'POST',
body: JSON.stringify([trailEntry]),
headers: {
Expand Down

0 comments on commit 9748ea0

Please sign in to comment.