Skip to main content
Glama
api.php669 B
<?php /** * API Router * PHP backend routing */ /** * Handle API requests and route to appropriate handlers * * @param string $method HTTP method * @param string $path Request path * @return array Response data */ function routeRequest(string $method, string $path): array { // Implementation would go here return ['status' => 'ok']; } /** * Send JSON response * * @param array $data Response data * @param int $statusCode HTTP status code * @return void */ function sendJsonResponse(array $data, int $statusCode = 200): void { http_response_code($statusCode); header('Content-Type: application/json'); echo json_encode($data); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LiL-Loco/documentation-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server