Skip to content

Static backend method names must be unique accross all controllers, or URLs clash? #189

Answered by noam-honig
SpeedoPasanen asked this question in Q&A
Discussion options

You must be logged in to vote

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.

class myClass{
  @BackendMethod({allowed:true, apiPrefix:'prefixa/prefixb'})
  static async methodName(){
    return "works"
  }
}

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?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SpeedoPasanen
Comment options

@aepshtin
Comment options

@noam-honig
Comment options

Answer selected by SpeedoPasanen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants