From 9e6922a82d0232434ce29b80234d598b05568ad6 Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Thu, 8 Feb 2024 21:07:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Actually=20load=20the=20core=20r?= =?UTF-8?q?outes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/app/config/routes.js | 26 ++++++++++++++++++++++++++ lib/app/routes.js | 11 ----------- 2 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 lib/app/config/routes.js delete mode 100644 lib/app/routes.js diff --git a/lib/app/config/routes.js b/lib/app/config/routes.js new file mode 100644 index 00000000..9f5375d0 --- /dev/null +++ b/lib/app/config/routes.js @@ -0,0 +1,26 @@ +Router.add({ + name : 'APIResource', + paths : '/api/{action}', + handler : 'Api#{action}', + methods : ['get', 'post'], + visible_location : false, + is_system_route : true, +}); + +Router.add({ + name : 'AlchemyInfo', + paths : '/alchemy-info', + handler : 'AlchemyInfo#info', + methods : ['get'], + is_system_route : true, +}); + +Router.POSTPONED_ROUTE = Router.add({ + name : 'AlchemyInfo#postponed', + paths : '/alchemy/postponed/{id}', + methods : ['get'], + can_be_postponed : false, + is_system_route : true, +}); + +Router.linkup('Syncable#linkup', 'syncablelink', 'AlchemyInfo#syncable'); \ No newline at end of file diff --git a/lib/app/routes.js b/lib/app/routes.js deleted file mode 100644 index e4a11583..00000000 --- a/lib/app/routes.js +++ /dev/null @@ -1,11 +0,0 @@ -Router.add(['get', 'post'], 'APIResource', '/api/{action}', 'Api#{action}'); -Router.get('AlchemyInfo', '/alchemy-info', 'AlchemyInfo#info'); - -Router.POSTPONED_ROUTE = Router.add({ - name : 'AlchemyInfo#postponed', - paths : '/alchemy/postponed/{id}', - methods : ['get'], - can_be_postponed : false, -}); - -Router.linkup('Syncable#linkup', 'syncablelink', 'AlchemyInfo#syncable'); \ No newline at end of file