diff --git a/controller/index.js b/controller/index.js index 9d4d389..01c871a 100644 --- a/controller/index.js +++ b/controller/index.js @@ -12,6 +12,10 @@ export default function (fastify, opts, done) { await operation.sanaExit(fastify.req, fastify.reply) }); + cron.schedule(`*/5 * * * * *`, async () => { + await operation.test(fastify.req, fastify.reply) + }); + fastify.get('/enter', operation.sanaEnter()); fastify.get('/exit', operation.sanaExit());