On some this code I had the error
A spread argument must either have a tuple type or be passed to a rest parameter.ts(2556)
(parameter) args: any[]
I think this is because, in Lexical Labs, I copied the example of creating an api route which was a js file and I have changed it to a ts file. The solution was to ask chatgpt what parameters expressJS’s app.get actually takes.