Add some integration tests with go-hit

This commit is contained in:
2024-12-31 15:29:19 +01:00
parent c9b7a5796e
commit 40f11c75af
5 changed files with 322 additions and 8 deletions

View File

@ -1,10 +1,18 @@
package main
import (
"code.dlmw.ch/dlmw/qv/internal/models"
"github.com/justinas/alice"
"log/slog"
"net/http"
)
type application struct {
logger *slog.Logger
elections models.ElectionModelInterface
voters models.VoterModelInterface
}
func (app *application) routes() http.Handler {
mux := http.NewServeMux()