| 1 | #include <kore/kore.h> |
| 2 | #include <kore/http.h> |
| 3 | |
| 4 | int homepage(struct http_request *); |
| 5 | |
| 6 | int |
| 7 | homepage(struct http_request *req) |
| 8 | { |
| 9 | static const char response_body[] = "JSON-RPC API\n"; |
| 10 | |
| 11 | http_response_header(req, "content-type", "text/plain"); |
| 12 | http_response(req, 200, response_body, sizeof(response_body) - 1); |
| 13 | return (KORE_RESULT_OK); |
| 14 | } |