# Service with two strip-path routes

**URL:** <https://discuss.konghq.com/t/service-with-two-strip-path-routes/2596>\
**Category:** Questions\
**Created:** [January 11, 2019, 2:03pm UTC](https://discuss.konghq.com/t/service-with-two-strip-path-routes/2596 "2019-01-11T14:03:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnatten](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jnatten/32/1238_2.png) [@jnatten](https://discuss.konghq.com/u/jnatten)\
**Post date:** [January 11, 2019, 2:03pm UTC](https://discuss.konghq.com/t/service-with-two-strip-path-routes/2596/1 "2019-01-11T14:03:15Z")

</div>

Hey there,

I’m creating a service, lets call it “myapi”  
And i want two routes to access it, one which has a jwt plugin to require authentication:

- `/myapi`

And one which is open:

- `/myapi/api-doc`

The api itself exposes `/` and `/api-doc`.

If i create the routes with strip\_path (to not send `myapi` part to the api itself) on a single service, the `api-doc` part is obviously stripped as it matches the path of the route. This means that to access the `api-doc` part i have to do `/myapi/api-doc/api-doc` which is obviously not what i want.

Is the best way to solve this to create a service for each route?

All help appreciated 🙂

---

<div class="post-metadata">

**Author:** ![pajel](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pajel](https://discuss.konghq.com/u/pajel)\
**Post date:** [February 1, 2019, 4:21pm UTC](https://discuss.konghq.com/t/service-with-two-strip-path-routes/2596/2 "2019-02-01T16:21:43Z")

</div>

@jnatten I don’t think it’s currently possible with Kong. I’ve requested this feature, please vote/like it so we get Kong’s attention 😉 [Strip part of URI](https://discuss.konghq.com/t/strip-part-of-uri/2738)

---

<div class="post-metadata">

**Author:** ![jnatten](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jnatten/32/1238_2.png) [@jnatten](https://discuss.konghq.com/u/jnatten)\
**Post date:** [February 1, 2019, 7:21pm UTC](https://discuss.konghq.com/t/service-with-two-strip-path-routes/2596/3 "2019-02-01T19:21:17Z")

</div>

Sounds like a plan 🙂

---

<div class="post-metadata">

**Author:** ![rsemlal.tas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/rsemlal.tas/32/3091_2.png) [@rsemlal.tas](https://discuss.konghq.com/u/rsemlal.tas)\
**Post date:** [November 10, 2021, 8:49am UTC](https://discuss.konghq.com/t/service-with-two-strip-path-routes/2596/4 "2021-11-10T08:49:34Z")

</div>

Had the same issue, since Kong does not natively support this, I described the workaround I used here: [Strip part of URI - #10 by rsemlal.tas](https://discuss.konghq.com/t/strip-part-of-uri/2738/10)
