Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
31 lines
722 B
Go
31 lines
722 B
Go
package httpapi
|
|
|
|
import "net/http"
|
|
|
|
func handleMeta(w http.ResponseWriter, _ *http.Request) {
|
|
writeJSON(w, http.StatusOK, map[string]any{
|
|
"service": "morz-infoboard-backend",
|
|
"version": "dev",
|
|
"api": map[string]any{
|
|
"base_path": "/api/v1",
|
|
"health": "/healthz",
|
|
"tools": []map[string]string{
|
|
{
|
|
"name": "message-wall-resolve",
|
|
"method": http.MethodPost,
|
|
"path": "/api/v1/tools/message-wall/resolve",
|
|
},
|
|
{
|
|
"name": "screen-status-list",
|
|
"method": http.MethodGet,
|
|
"path": "/api/v1/screens/status",
|
|
},
|
|
{
|
|
"name": "screen-status-detail",
|
|
"method": http.MethodGet,
|
|
"path": "/api/v1/screens/{screenId}/status",
|
|
},
|
|
},
|
|
},
|
|
})
|
|
}
|