batching events
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
244aa3b0d3
commit
5e225b7ae6
@@ -3,10 +3,15 @@ import fastifyWS from '@fastify/websocket';
|
||||
import type { FastifyPluginCallback } from 'fastify';
|
||||
|
||||
const liveRouter: FastifyPluginCallback = (fastify, opts, done) => {
|
||||
fastify.route({
|
||||
method: 'GET',
|
||||
url: '/visitors/test/:projectId',
|
||||
handler: controller.testVisitors,
|
||||
});
|
||||
fastify.route({
|
||||
method: 'GET',
|
||||
url: '/events/test/:projectId',
|
||||
handler: controller.test,
|
||||
handler: controller.testEvents,
|
||||
});
|
||||
|
||||
fastify.register(fastifyWS);
|
||||
|
||||
Reference in New Issue
Block a user