usuwanie obrazow z bazy danych

This commit is contained in:
2023-04-19 15:31:25 +02:00
parent 4c7fa352dc
commit 9724dbde18
3 changed files with 44 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
<td>{{ image.token }}</td>
<td>{{ image.name }}</td>
<td>
<form method="post" action="/api/delete_image/{{ image.id }}">
<form action="{{ url_for('delete', image_id=image.id) }}" method="post">
<button type="submit" class="btn btn-danger">Usuń</button>
</form>
</td>