Skip to content

Plugin Development

couriourc edited this page Sep 13, 2024 · 1 revision

This project supports dynamic plugin injection and includes pre-configured handling for CORS, Swagger for displaying API documentation, and a logger for API records. These are implemented using @elysiajs/cors, @elysiajs/swagger, and @grotto/logysia.

By the way, I really like @elysiajs/swagger—it's visually appealing, concise, and convenient!

Example

plugins
| swagger
|--package.json
|--[main].ts // alias main by ur field of package.json
Clone this wiki locally