this repo has no description
1package main
2
3import (
4 "github.com/labstack/echo/v4"
5 "net/http"
6)
7
8type HealthStatus struct {
9 Status string `json:"status"`
10 Message string `json:"msg,omitempty"`
11}
12
13func (srv *Server) HandleHealthCheck(c echo.Context) error {
14 return c.JSON(http.StatusOK, HealthStatus{Status: "ok"})
15}
16
17var homeMessage string = `
18 .::::::. .,-::::: :::::::.. ... :::. : :::::::. ::: .,::::::
19;;;' ' ,;;;'''''' ;;;;'';;;; ;; ;;;;;,. ;;; ;;;'';;' ;;; ;;;;''''
20'[==/[[[[,[[[ [[[,/[[[' [[' [[[[[[[, ,[[[[, [[[__[[\. [[[ [[cccc
21 ''' $$$$ $$$$$$c $$ $$$$$$$$$$$"$$$ $$""""Y$$ $$' $$""""
22 88b dP'88bo,__,o, 888b "88bo,88 .d888888 Y88" 888o_88o,,od8Po88oo,.__888oo,__
23 "YMmMY" "YUMMMMMP"MMMM "W" "YmmMMMM""MMM M' "MMM""YUMMMP" """"YUMMM""""YUMMM
24
25
26 scrumble.social / make a scene
27`
28
29func (srv *Server) HandleHomeMessage(c echo.Context) error {
30 return c.String(http.StatusOK, homeMessage)
31}