Step 4: Can create containers

This commit is contained in:
nemunaire 2024-05-29 16:00:19 +02:00
commit ec71ff464f
3 changed files with 20 additions and 3 deletions

View file

@ -21,7 +21,12 @@
<tbody id="containers">
</tbody>
</table>
<div style="text-align: center">
<button type="button" id="create-btn">Create container</button>
</div>
<script>
document.getElementById('create-btn').addEventListener("click", () => fetch('/containers', {method: 'POST'}));
fetch('/containers').then(
(res) => res.json()
).then(