#From JS to TS : Swagger no longer works

3 messages · Page 1 of 1 (latest)

pulsar walrus
#

I have a backend with express and prisma to which I wanted to add typescript.
The documentation generated by Swagger indicates that there are no routes, but both routes work, and Swagger worked before I implemented TS in the project

grand tiger
pulsar walrus
#

apis: [path.resolve(__dirname, '..', 'routes', '*.{js,ts}')]
It works
I think it was more that “..” was not interpreted in the first place without path.resolve