express-endpoint
Installation
SKILL.md
Express Endpoint Skill
Crea un nuevo endpoint Express siguiendo el patron del proyecto Ocralis.
When to Activate
- Crear un nuevo endpoint REST en el backend
- Agregar operaciones CRUD para un recurso
- Integrar un nuevo modulo con validacion y autenticacion
- Extender un controller existente con nuevos handlers
Patron Completo
1. Controller (controllers/{modulo}.controller.js)
import { prisma } from "../prismaClient.js";
import logger from "../utils/logger.js";
import { z } from "zod";