Skip to main content
Glama
chainable.test.js703 B
'use strict' const { test } = require('node:test') const fastify = require('..')() const noop = () => {} const opts = { schema: { response: { '2xx': { type: 'object', properties: { hello: { type: 'string' } } } } } } test('chainable - get', t => { t.plan(1) t.assert.strictEqual(fastify.get('/', opts, noop), fastify) }) test('chainable - post', t => { t.plan(1) t.assert.strictEqual(fastify.post('/', opts, noop), fastify) }) test('chainable - route', t => { t.plan(1) t.assert.strictEqual(fastify.route({ method: 'GET', url: '/other', schema: opts.schema, handler: noop }), fastify) })

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/krtw00/search-mcp'

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