restructure routes
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
</div>
|
||||
|
||||
<div class="btn-area">
|
||||
<input class="action-btn" type="submit" value="Senden" hx-post="/resubmit-article/{{.Article.ID}}"
|
||||
<input class="action-btn" type="submit" value="Senden" hx-post="/article/resubmit/{{.Article.ID}}"
|
||||
hx-target="#page-content" />
|
||||
<button class="btn" hx-get="/hub" hx-target="#page-content">Zurück</button>
|
||||
</div>
|
||||
@ -48,7 +48,7 @@
|
||||
var formData = new FormData();
|
||||
formData.append('article-image', file);
|
||||
|
||||
fetch('/upload-image', {
|
||||
fetch('/pic/upload', {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
})
|
||||
|
Reference in New Issue
Block a user