Static backend method names must be unique accross all controllers, or URLs clash? #189
-
Hi, exploring Remult for the first time, and it seems awesome, but I'm stuck with this: Static backend methods are always routed to I tried adding the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @SpeedoPasanen, class myClass{
@BackendMethod({allowed:true, apiPrefix:'prefixa/prefixb'})
static async methodName(){
return "works"
}
} Will result in an api: This will help you organize your backend methods api Can you take the latest version, try it out and let me know if it works for you? |
Beta Was this translation helpful? Give feedback.
Hi @SpeedoPasanen,
In the latest release v0.20.2
We've added an option for the backend method called
apiPrefix
to help you achieve what you've wanted.Will result in an api:
/api/prefixa/prefixb/methodName
This will help you organize your backend methods api
Can you take the latest version, try it out and let me know if it works for you?