add some test func to controller/index.js

main
kavehjamshidi 2 weeks ago
parent 62a3603890
commit 718ce1ec74
  1. 4
      controller/index.js

@ -12,6 +12,10 @@ export default function (fastify, opts, done) {
await operation.sanaExit(fastify.req, fastify.reply) 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('/enter', operation.sanaEnter());
fastify.get('/exit', operation.sanaExit()); fastify.get('/exit', operation.sanaExit());

Loading…
Cancel
Save