// Copyright (c) 2015 The Virtual Vulcano authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE.md file.

'use strict';

var express = require('express'),
    dashboard = require('./handlers/dashboard'),
    path = require('path'),
    promised = require('./middlewares/promised'),
    bodyParser = require('body-parser');


var app = express();


// Middlewares
app.use('/static', express.static(path.join(__dirname, 'static')));
app.use(bodyParser.json());

// Dashboard handler
app.get('/', promised(dashboard.dashboard));


// Start server
app.listen(8080, function () {
  console.log('server listening in http://localhost:8080');
});


@@ -590,24 +590,84 @@
 shboard));%0A%0A
+app.post('/api/accounts/login', promised(accounts.login));%0A%0A
 %0A// Start se

Add url to login