Merge pull request 'fix: ajouter route /nothing/ au ui' (#7) from vlbeaudoin/fix/add-route-get-nothing into main

Reviewed-on: #7
This commit is contained in:
Victor Lacasse-Beaudoin 2025-03-13 18:00:28 -04:00
commit 636f255e89

View file

@ -5,6 +5,7 @@ import (
"crypto/subtle"
"fmt"
"log"
"net/http"
"git.agecem.com/bottin/agendas/ui"
"git.agecem.com/bottin/bottin/v10/pkg/bottin"
@ -63,6 +64,7 @@ func RunServer(ctx context.Context, cfg Config, bottinClient *bottin.APIClient,
)
e.GET("/", UIIndex(ctx, bottinClient, dbClient))
e.GET("/nothing/", func(c echo.Context) error { return c.NoContent(http.StatusOK) })
//e.GET("/transaction/", UIReadTransaction
e.POST("/transaction/", UICreateTransaction(ctx, cfg, bottinClient, dbClient))