Add log buffer site
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/jackc/pgx/v4/pgxpool"
|
||||
"log"
|
||||
"strconv"
|
||||
"trikotwaschliste/logbuffer"
|
||||
"trikotwaschliste/models"
|
||||
)
|
||||
|
||||
@@ -61,3 +62,7 @@ func ChangeName(pool *pgxpool.Pool, id, personID string) bool {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func Logs(queue *logbuffer.Queue) gin.H {
|
||||
return gin.H{"items": queue.ToSlice()}
|
||||
}
|
Reference in New Issue
Block a user