this repo has no description
1package main
2
3import (
4 "github.com/labstack/echo/v4"
5)
6
7type GenericStatus struct {
8 Daemon string `json:"daemon"`
9 Status string `json:"status"`
10 Message string `json:"msg,omitempty"`
11}
12
13func (s *Server) HandleHealthCheck(c echo.Context) error {
14 return c.JSON(200, GenericStatus{Status: "ok", Daemon: "bluepages"})
15}
16
17func (srv *Server) WebHome(c echo.Context) error {
18 return c.String(200, `atbin.dev`)
19}