Add some integration tests with go-hit
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user