skills/smithery.ai/new-api-route

new-api-route

Installation
SKILL.md

New API Route

Create API routes following project conventions for Next.js App Router.

Instructions

  1. Determine route path and HTTP methods needed

  2. Create route file at src/app/api/<path>/route.ts

  3. Use this template:

    import { NextResponse } from 'next/server';
    import { sql } from '@/lib/db';
    
    export const dynamic = 'force-dynamic';
    
Installs
1
First Seen
Apr 28, 2026