one-api-routes

Installation
SKILL.md

API Routes

Official docs: Routing

API routes are server-only HTTP endpoints. Name files with the +api.ts suffix.

When to Use

  • REST API endpoints
  • Webhook handlers
  • Form submissions
  • Server-side operations (database writes, external API calls)
  • Authentication endpoints

When NOT to Use

  • Fetching data for a page — use loaders instead
  • Client-side logic — use regular components
  • Static data — use SSG with loaders
Related skills
Installs
1
Repository
onejs/skills
GitHub Stars
1
First Seen
Apr 2, 2026