documentation server and /doc route

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-16 07:46:27 +03:00
parent 5fb3c03e40
commit e87764a4c2
40 changed files with 1313 additions and 301 deletions

View File

@ -66,7 +66,7 @@ func GET_Metrics(c *fiber.Ctx) error {
if result["since"] == 0 {
result["since"] = uint64(time.Now().Truncate(24 * time.Hour).Unix())
if err = db.MetricsSet("since", result["since"]); err != nil {
if err = db.MetricsSet("start_date", result["since"]); err != nil {
return util.ErrInternal(c, err)
}
}