From f1217248bba15d4e5cf77c9776015cab772b127e Mon Sep 17 00:00:00 2001 From: dsc Date: Fri, 13 Apr 2012 08:51:24 -0700 Subject: [PATCH] /datasources/all to take precedence before the :id lookup. --- lib/server/server.co | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/server/server.co b/lib/server/server.co index e988ac6..477beca 100755 --- a/lib/server/server.co +++ b/lib/server/server.co @@ -143,8 +143,6 @@ app.configure -> Controller = require './controller' app.controller require './controllers/graph' -ds = app.controller require './controllers/datasource' -# ds.map 'get', 'all', ds.allData.bind(ds) YAML_EXT_PAT = /\.ya?ml$/i app.get '/datasources/all', (req, res, next) -> @@ -186,6 +184,9 @@ app.get '/datasources/all', (req, res, next) -> console.error that if err.stack res.send { error:String(err), partial_data:data } +ds = app.controller require './controllers/datasource' +# ds.map 'get', 'all', ds.allData.bind(ds) + app.get '/', (req, res) -> res.render 'dashboard' -- 1.7.0.4