Step 4: Can create containers
This commit is contained in:
parent
fe9b062c36
commit
ec71ff464f
3 changed files with 20 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue