Skip to content

Commit

Permalink
Update _ArticleMeta.svelte
Browse files Browse the repository at this point in the history
Unnecessary `/` that breaks backend
  • Loading branch information
quantuminformation authored Oct 10, 2019
1 parent 1fd5028 commit 9533c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/article/_ArticleMeta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$: canModify = user && article.author.username === user.username;
async function remove() {
await api.del(`/articles/${article.slug}`, user && user.token);
await api.del(`articles/${article.slug}`, user && user.token);
goto('/');
}
</script>
Expand Down Expand Up @@ -36,4 +36,4 @@
</button>
</span>
{/if}
</div>
</div>

0 comments on commit 9533c9c

Please sign in to comment.