Revert "DEV: Remove `Discourse.Route`"

Revert "DEV: Remove Discourse.Route"

This reverts commit eed7983404fdf7f2f2b48144035739aa158099d7.

diff --git a/app/assets/javascripts/discourse/app/routes/discourse.js b/app/assets/javascripts/discourse/app/routes/discourse.js
index 6d04c6b..91be0b4 100644
--- a/app/assets/javascripts/discourse/app/routes/discourse.js
+++ b/app/assets/javascripts/discourse/app/routes/discourse.js
@@ -2,6 +2,7 @@ import { once } from "@ember/runloop";
 import Composer from "discourse/models/composer";
 import { getOwner } from "discourse-common/lib/get-owner";
 import Route from "@ember/routing/route";
+import deprecated from "discourse-common/lib/deprecated";
 import { seenUser } from "discourse/lib/user-presence";
 
 const DiscourseRoute = Route.extend({
@@ -112,4 +113,14 @@ const DiscourseRoute = Route.extend({
   }
 });
 
+Object.defineProperty(Discourse, "Route", {
+  get() {
+    deprecated("Import the Route class instead of using Discourse.Route", {
+      since: "2.4.0",
+      dropFrom: "2.5.0"
+    });
+    return Route;
+  }
+});
+
 export default DiscourseRoute;

GitHub sha: b4d27d32