elysia-status
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Elysia Status

This repository is home to a plugin for the Elysia framework that provides status endpoints for the APIs health.

Usage

To use the plugin, simply add it like you would any other one with the .use function available on an instance of Elysia:

import { Elysia } from 'elysia'
import { StatusRoutes } from 'elysia-status'

const app = new Elysia().use(StatusRoutes('/status'))

app.listen(8080)

console.log('Server is online!')

The above example will add a prefix of /status to the routes but it's an optional value you can remove if you don't want it. The resulting routes will be available at:

  • /status/health
  • /status/readiness

Readme

Keywords

Package Sidebar

Install

npm i elysia-status

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

59.6 kB

Total Files

7

Last publish

Collaborators

  • alcha