-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem to create routings #1121
Comments
you need to read the following two articles in order to achieve the desired configuration:
This should help you to make it possible. |
const routing: Routing = {
api: {
users: {
"": new DependsOnMethod({
get: getUsersEndpoint,
post: makeUsersEndpoint,
}),
":id": new DependsOnMethod({
get: getUserByIdEndpoint,
patch: changeUserByIdEndpoint,
delete: deleteUserByIdEndpoint,
})
}
}
} |
@RobinTail thank you for your answer, its not obvious from the documentation how to achieve such a configuration (i mean empty quotes), perhaps need to add such an example to the documentation |
And I'm also in the process of writing an autorouting generator depending on the file structure, if it's useful I may add MR later on |
I want to combine
With current architecture of routings it seems impossible
The text was updated successfully, but these errors were encountered: