Browse Source

WIP: db

master
Julio Biason 11 years ago
parent
commit
b69572840d
  1. 5
      lyricsnode/app.js
  2. 6
      lyricsnode/views/base.html

5
lyricsnode/app.js

@ -5,6 +5,7 @@
var express = require('express');
var round = require('./routes/round');
var database = require('./routes/database');
var http = require('http');
var path = require('path');
var cons = require('consolidate');
@ -31,7 +32,7 @@ app.use(app.router);
app.use('/static', express.static(path.join(__dirname, 'public')));
// development only
if ('development' == app.get('env')) {
if ('development' === app.get('env')) {
app.use(express.errorHandler());
}
@ -39,6 +40,8 @@ app.get('/', round.index);
app.post('/round/others/', round.others);
app.post('/round/played/', round.played);
app.get('/db/', database.index);
http.createServer(app).listen(app.get('port'), function(){
console.log('Express server listening on port ' + app.get('port'));
});

6
lyricsnode/views/base.html

@ -24,8 +24,8 @@
<section class='top-bar-section'>
<ul class='left'>
<li><a href='#'>Round</a></li>
<li><a href='#'>Database</a></li>
<li><a href='/'>Round</a></li>
<li><a href='/db/'>Database</a></li>
</ul>
</section>
</nav>
@ -45,4 +45,4 @@
{% block scripts %}{% endblock %}
</body>
</html>
</html>

Loading…
Cancel
Save