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
#From JS to TS : Swagger no longer works
3 messages · Page 1 of 1 (latest)
Might be because of the space?
../routes/*.{js,ts}
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