fix: ajouter route /nothing/ au ui #7

Merged
vlbeaudoin merged 1 commit from vlbeaudoin/fix/add-route-get-nothing into main 2025-03-13 18:00:29 -04:00 AGit

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))