• Resolved tivalii

    (@tivalii)


    It will be a great to have an ability to change/specify custom route namespace, ex.:

    bdpwr/v1 –> my_custom/v1

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    Thanks for that. I could probably add in a filter to do that, assuming that would cover what you need?

    Cheers,

    Plugin Author dominic_ks

    (@dominic_ks)

    I assume that the purpose for doing this is to allow you to align the namespaces you’re using with other API calls on your site?

    Thread Starter tivalii

    (@tivalii)

    Hi, thanks for a quick response.
    Yeah, the initial idea is to be able to align plugin route namespace with other API calls to be consistent.

    • This reply was modified 4 years, 6 months ago by tivalii.
    Plugin Author dominic_ks

    (@dominic_ks)

    OK cool, not 100% when I will get to do this, hopefully soon, but in the meantime I’ve added it to GitHub in case there’s anyone else who wants to pick it up:

    Cheers!

    Plugin Author dominic_ks

    (@dominic_ks)

    @tivalii just for an update – someone has made this change now and it’s been merged into the master on github, just working on a couple of things and will get the next version out which will contain this filer.

    Cheers!

    Thread Starter tivalii

    (@tivalii)

    @dominic_ks, great!
    Thanks

    Plugin Author dominic_ks

    (@dominic_ks)

    @tivalii Hello, just FYI, just released 0.0.8 of this plugin that contains the feature that you requested, you can use it like so:

    add_filter( 'bdpwr_route_namespace' , function( $route_namespace ) {
      return 'xyz/v1';
    }, 10 , 1 );

    I’ll mark this thread as resolved, but please do let me know if you get any problems.

    Cheers!

    Thread Starter tivalii

    (@tivalii)

    @dominic_ks,

    Thanks a lot!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add ability to specify route namespace’ is closed to new replies.