~ya-bo-ng/juju-gui/bottom-bar-removed

« back to all changes in this revision

Viewing changes to server.js

  • Committer: Benjamin Saller
  • Date: 2012-07-24 15:13:14 UTC
  • Revision ID: bcsaller@gmail.com-20120724151314-fbp6t4acbgeg7twu
Includings basic router

A simple test setup using YUI and Mocha together, seems easily viable.

A Makefile to install, test and run the server.js

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
// Handles requests to the root path ("/") my simply sending the "shell" page
15
15
// which creates the `Y.App` instance.
16
 
server.get('/', function (req, res) {
 
16
server.get('*', function (req, res) {
17
17
    res.sendfile('app/index.html');
18
18
});
19
19