agenda / agendash

Agenda Dashboard
MIT License
783 stars 218 forks source link

Not working with fastify + prefix #237

Open eduhaag opened 1 year ago

eduhaag commented 1 year ago

Firstly sorry for my english. I'm trying use Agendash with Fastify, but when I set the prefix to access Agendash in localhost:3333/dash, the interface isn't displayed.

My code:

app.register(Agendash(agenda, { middleware: 'fastify'}), { prefix: '/dash', })

app is instance of Fastify

pozhega commented 1 year ago

Some thing here. @eduhaag have you managed to solve the issue?

pozhega commented 1 year ago

Found temporary fix. Just add / on the end of the route. For example http://localhost/dash/