From 8d97d00e93d93413d2e7286f005fdfee1bdc4649 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Wed, 1 Apr 2026 00:34:09 +0200 Subject: [PATCH] Book form: can now edit an existing book --- front/src/BookFormEdit.vue | 70 +++++++++++++++++++++++++----- front/src/BookFormView.vue | 10 ++++- front/src/api.js | 36 ++++++++++----- front/src/router.js | 1 + internal/adapter/adapter.go | 63 +++++++++++++++++++++++++++ internal/apitest/post_book_test.go | 21 +++------ internal/apitest/put_book_test.go | 56 ++++++++++++++++++++++++ internal/dto/in.go | 18 ++++---- internal/routes/bookpostcreate.go | 61 ++++++++++---------------- internal/routes/bookputupdate.go | 43 ++++++++++++++++++ internal/setup/setup.go | 3 ++ 11 files changed, 297 insertions(+), 85 deletions(-) create mode 100644 internal/adapter/adapter.go create mode 100644 internal/apitest/put_book_test.go create mode 100644 internal/routes/bookputupdate.go diff --git a/front/src/BookFormEdit.vue b/front/src/BookFormEdit.vue index b5d141f..866f030 100644 --- a/front/src/BookFormEdit.vue +++ b/front/src/BookFormEdit.vue @@ -1,11 +1,17 @@