1
Usually when I create a Vuejs + Typescript project I like to split the Services by creating methods that perform post requests, update, get and delete but I noticed that I was repeating a lot of code creating a lot of services with repeated code changing only the route and I thought it would be interesting to use Generics creating a class with the ready methods and in the specific classes using the method extends. Do you know any way or can you give me tips on how to do this?
Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of this. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English (short version). If the help is very simple it is still possible to do in the comments.
– Maniero