agendash
Version:
Dashboard for Agenda job scheduler
19 lines (18 loc) • 570 B
TypeScript
import type { Agenda } from 'agenda';
import type { FastifyPluginCallback } from 'fastify';
/**
* Create Fastify plugin for Agendash
*
* @example
* ```typescript
* import Fastify from 'fastify';
* import { Agenda } from 'agenda';
* import { createFastifyPlugin } from 'agendash';
*
* const fastify = Fastify();
* const agenda = new Agenda({ db: { address: 'mongodb://localhost/agenda' } });
*
* fastify.register(createFastifyPlugin(agenda), { prefix: '/dash' });
* ```
*/
export declare function createFastifyPlugin(agenda: Agenda): FastifyPluginCallback;