Skip to main content
Glama
app.controller.ts627 B
import { Controller, Get, Header, HttpCode, HttpStatus, Redirect, } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() @Redirect('/api/health', HttpStatus.PERMANENT_REDIRECT) @HttpCode(HttpStatus.OK) redirectToApi() {} @Get('hello') getHello(): string { return this.appService.getHello(); } @Get('health') @HttpCode(HttpStatus.OK) @Header('Cache-Control', 'none') getHealth(): { status: string; timestamp: Date } { return this.appService.getHealth(); } }

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/javascripto/mcp-server'

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