Fix newline escape character on /online

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2023-01-07 19:43:20 +01:00
parent a9933f7a42
commit a10b9a75c2

View File

@ -10,6 +10,8 @@ import (
log "github.com/sirupsen/logrus"
"runtime"
"strings"
)
// publapi is a simple API for Project Segfault's public shared server (pubnix).
@ -41,7 +43,7 @@ func main() {
output := string(out)
return c.JSON(fiber.Map{
"users": output,
"users": strings.TrimSuffix(output, "\n"),
"status": c.Response().StatusCode(),
})
})