Files
trikotwaschliste/handler/persons.go
2020-10-09 17:03:30 +02:00

16 lines
301 B
Go

package handler
import (
"github.com/gin-gonic/gin"
"github.com/jackc/pgx/v4/pgxpool"
"net/http"
"trikotwaschliste/database"
)
func ShowPersonsList(pool *pgxpool.Pool) gin.HandlerFunc {
return func(c *gin.Context) {
c.HTML(http.StatusAccepted, "persons.html", database.DbPersons(pool))
}
}