Whereis routes.rb?

(Luisfpinto) #1

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 Simple plugin that offers an HTTP POST endpoint to mailgun or any other mail service

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

Thank you in advance :slight_smile:

(Matt Palmer) #2

The routes are defined in /var/www/discourse/config/routes.rb, in the default image. However, you may wish to read this post before installing that plugin.

(Luisfpinto) #3

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

(Sam Saffron) #4

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