Skip to content

Instantly share code, notes, and snippets.

@giobyte8
Created August 16, 2015 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giobyte8/e3fb5c430d44f8264ec5 to your computer and use it in GitHub Desktop.
Save giobyte8/e3fb5c430d44f8264ec5 to your computer and use it in GitHub Desktop.
Parte 4 | Creando un sistema de chat sobre NodeJS con Foundation
/** css and js static routes */
app.get('/css/foundation.min.css', function (req, res) {
res.sendFile(__dirname + '/views/css/foundation.min.css');
});
app.get('/css/normalize.css', function (req, res) {
res.sendFile(__dirname + '/views/css/normalize.css');
});
app.get('/css/chat.css', function (req, res) {
res.sendFile(__dirname + '/views/css/chat.css');
})
app.get('/js/foundation.min.js', function (req, res) {
res.sendFile(__dirname + '/views/js/foundation.min.js');
});
app.get('/js/foundation.offcanvas.js', function (req, res) {
res.sendFile(__dirname + '/views/js/foundation.offcanvas.js');
});
app.get('/js/chat.js', function (req, res) {
res.sendFile(__dirname + '/views/js/chat.js');
});
app.get('/js/moment-with-locales.min.js', function (req, res) {
res.sendFile(__dirname + '/views/js/moment-with-locales.min.js')
})
app.get('/img/nathan.png', function (req, res) {
res.sendFile(__dirname + '/views/img/nathan.png');
})
app.get('*', function(req, res) {
res.sendFile( __dirname + '/views/chat.html');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment