You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you mean by sub folder controllers? Do you mean how to span controller methods across the same route paths?
import{Get,JsonController}from'routing-controllers';
@JsonController('/images')exportclassIndexController{
@Get('/')asyncindex(){return'this is the images root';}}
@JsonController('/images/products')exportclassIndex2Controller{
@Get('/')asyncindex(){return'this is the images/products root';}}
The above should match /images/ to IndexController and /images/products to Index2Controller.
If the above is not what you mean could you elaborate and provide an example ?
how make sub folder controllers
The text was updated successfully, but these errors were encountered: