# Whereis routes.rb?

**URL:** https://meta.discourse.org/t/whereis-routes-rb/43656
**Category:** Development
**Created:** [2016年五月4日 08:42 UTC](https://meta.discourse.org/t/whereis-routes-rb/43656 "2016-05-04T08:42:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![luisfpinto](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@luisfpinto](https://meta.discourse.org/u/luisfpinto)
#### Post date: [2016年五月4日 08:42 UTC](https://meta.discourse.org/t/whereis-routes-rb/43656/1 "2016-05-04T08:42:20Z")

</div>

Hello, I have installed discourse with docker and I have been looking for the routes.rb file to change the endpoint to email processing as It is said here [https://meta.discourse.org/t/simple-plugin-that-offers-an-http-post-endpoint-to-mailgun-or-any-other-mail-service/37001/2](https://meta.discourse.org/t/simple-plugin-that-offers-an-http-post-endpoint-to-mailgun-or-any-other-mail-service/37001/2)

However, I can not find the directory where is that file. Can you please help me to manage this problem?

Thank you in advance 🙂

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [2016年五月4日 09:41 UTC](https://meta.discourse.org/t/whereis-routes-rb/43656/2 "2016-05-04T09:41:35Z")

</div>

The routes are defined in `/var/www/discourse/config/routes.rb`, in the default image. However, you may wish to read [this post](https://meta.discourse.org/t/simple-plugin-that-offers-an-http-post-endpoint-to-mailgun-or-any-other-mail-service/37001/3) before installing that plugin.

---

<div class="post-metadata">

### Author: ![luisfpinto](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@luisfpinto](https://meta.discourse.org/u/luisfpinto)
#### Post date: [2016年五月4日 13:16 UTC](https://meta.discourse.org/t/whereis-routes-rb/43656/3 "2016-05-04T13:16:24Z")

</div>

But how can I modify that endpoint? Or customize it to use Sendgrid emails?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年五月5日 00:28 UTC](https://meta.discourse.org/t/whereis-routes-rb/43656/4 "2016-05-05T00:28:43Z")

</div>

You would build a plugin that registers the custom route you need
