restructure routes

This commit is contained in:
2024-08-30 15:42:53 +02:00
parent be467521d9
commit cddd88d2f6
13 changed files with 54 additions and 54 deletions

View File

@ -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
})