From 5bd4b4769f99112351c9ed54f1b2e9aa2f6e6d33 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Wed, 6 Sep 2023 02:20:27 +0200 Subject: [PATCH] feat: Posts page impl and associated routes Implemented a new 'Posts' page which has been added to the main navigation. This includes: - Adding the 'posts.html' template with basic HTML and related CSS/JS - Updating the 'componentNavbar.html' template to include a link to the new Posts page - Writing the 'GetPostsPage' function in 'api/page.go' to handle requests for the Posts page - Modifying the 'home.html' template to provide a link towards the Posts Page - Adding an associated route in 'api/page.go'. --- .../web/templates/componentNavbar.html | 5 +---- .../gateways/web/templates/home.html | 4 +++- .../gateways/web/templates/posts.html | 20 +++++++++++++++++++ api/page.go | 1 + api/pagePosts.go | 14 +++++++++++++ 5 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 adapters/secondary/gateways/web/templates/posts.html create mode 100644 api/pagePosts.go diff --git a/adapters/secondary/gateways/web/templates/componentNavbar.html b/adapters/secondary/gateways/web/templates/componentNavbar.html index 7a7170e..1b0f56f 100644 --- a/adapters/secondary/gateways/web/templates/componentNavbar.html +++ b/adapters/secondary/gateways/web/templates/componentNavbar.html @@ -16,10 +16,7 @@ Accueil -