Skip to content

How do I get urlPrefix? #381

Description

@gkpo

From a random controller. How do I access restmod's urlPrefix setting?
Thanks in advance.

Activity

  1. utf4 commented on Nov 3, 2016

    @utf4

    You can use getProperty('urlPrefix') on any random model like:

    Bike.getProperty('urlPrefix'); // It will return the url prefix added previously
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions