@reverso/api
v0.2.0
Published
REST and GraphQL API server for Reverso CMS using Fastify
Maintainers
Readme
@reverso/api
REST API server for Reverso CMS using Fastify.
Installation
npm install @reverso/apiUsage
import { createServer } from '@reverso/api';
const server = await createServer({
database: './data/reverso.db',
port: 4000,
});
await server.listen();Endpoints
GET /schema- Get project schemaGET /pages- List all pagesGET /pages/:slug- Get page detailsGET /content/:path- Get content by pathPUT /content/:path- Update contentGET /media- List media filesPOST /media- Upload media
Features
- Fastify: High-performance web framework
- Security: Rate limiting, CORS, CSRF protection, Helmet
- Authentication: Session-based auth with brute force protection
- File Uploads: Multipart handling with validation
Documentation
See https://reverso.dev/docs/packages/api
License
MIT
