mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
02fa04e333
This update topic route has never worked. Better late than never. I am in favor of using non-slug urls when using the api so I do think we should fix this route. Just thought I would update the `:id` param to `:topic_id` here in the routes file instead of updating the controller to handle both params. Added a spec to test this route. Also added the same constraint we have on other topic routes to ensure we only pass in an ID that is a digit. |
||
---|---|---|
.. | ||
cloud/cloud66 | ||
environments | ||
initializers | ||
locales | ||
application.rb | ||
boot.rb | ||
cdn.yml.sample | ||
database.yml | ||
deploy.rb.sample | ||
dev_defaults.yml | ||
discourse_defaults.conf | ||
discourse.config.sample | ||
discourse.pill.sample | ||
environment.rb | ||
logrotate.conf | ||
multisite.yml.production-sample | ||
nginx.global.conf | ||
nginx.sample.conf | ||
projections.json | ||
puma.rb | ||
routes.rb | ||
sidekiq.yml | ||
site_settings.yml | ||
spring.rb | ||
thin.yml.sample | ||
unicorn_launcher | ||
unicorn_upstart.conf | ||
unicorn.conf.rb |