From 7783ba46fcdb2382cde00092ed700d8d899dbad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 11 Apr 2016 20:43:24 +0200 Subject: [PATCH] remove /error endpoint --- app/controllers/forums_controller.rb | 4 ---- config/routes.rb | 1 - 2 files changed, 5 deletions(-) diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index 1f41e94dd4a..a710d854e8a 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -12,10 +12,6 @@ class ForumsController < ApplicationController end end - def error - raise "WAT - #{Time.now}" - end - def home_redirect redirect_to path('/') end diff --git a/config/routes.rb b/config/routes.rb index 42958644784..2c36cd1a6ab 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -590,7 +590,6 @@ Discourse::Application.routes.draw do get "onebox" => "onebox#show" - get "error" => "forums#error" get "exception" => "list#latest" get "message-bus/poll" => "message_bus#poll"