Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1771)

Unified Diff: lib/server.js

Issue 7228070: Remove service click actions
Patch Set: Remove service click actions Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/deploy_charm_for_testing.py ('k') | test/browser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/server.js
=== modified file 'lib/server.js'
--- lib/server.js 2012-12-20 21:59:21 +0000
+++ lib/server.js 2013-02-01 10:01:32 +0000
@@ -35,9 +35,6 @@
console.log('Regenerating Views');
});
-// Handles requests to the root path ('/') my simply sending the 'shell' page
-// which creates the `Y.App` instance.
-
server.get('/stats/', function(req, res) {
res.json({
uptime: process.uptime(),
@@ -61,8 +58,7 @@
});
server.get('/juju-ui/:file', function(req, res) {
- var fileName = req.params.file;
- res.sendfile('build-shared/juju-ui/' + fileName);
+ res.sendfile('build-shared/juju-ui/' + req.params.file);
});
server.get('/juju-ui/assets/combined-css/:file', function(req, res) {
@@ -73,6 +69,8 @@
res.sendfile('app/favicon.ico');
});
+// Handles requests to the root ('/') and all other paths by
+// sending the 'shell' page that creates the `Y.App` instance.
server.get('*', function(req, res) {
res.sendfile('app/index.html');
});
« no previous file with comments | « lib/deploy_charm_for_testing.py ('k') | test/browser.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b