restructure routes
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
</div>
|
||||
|
||||
<div class="btn-area">
|
||||
<input class="action-btn" type="submit" value="Senden" hx-post="/submit-article" hx-target="#page-content" />
|
||||
<input class="action-btn" type="submit" value="Senden" hx-post="/article/submit" hx-target="#page-content" />
|
||||
<button class="btn" hx-get="/hub" hx-target="#page-content">Abbrechen</button>
|
||||
</div>
|
||||
</form>
|
||||
@ -46,7 +46,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