var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  
  //console.log(req);
  console.log(req.server);
  //console.log(req.query);   // debug
  //console.log(req.headers);   // debug
  //console.log(req.headers.cookie);
  //console.log(typeof(req.headers.cookie));

  //var url = require('url');
  //var url_parts = url.parse(req.url, true);
  //var query = url_parts.query;

  //console.log(url_parts);
  //console.log(query);


  res.render('index', { title: 'Ukazkove rozhrani pro vyhledavani nad radius logy' });

  //var color = req.param('color');

});

module.exports = router;

@@ -1,11 +1,13 @@
-var
+const
  express
@@ -29,19 +29,21 @@
 ress');%0A
-var
+const
  router 
@@ -66,581 +66,277 @@
 ();%0A
-%0A/* GET home page. */%0Arouter.get('/', function(req, res, next) %7B%0A  %0A  //console.log(req);%0A  console.log(req.server);%0A  //console.log(req.query);   // debug%0A  //console.log(req.headers);   // debug%0A  //console.log(req.headers.cookie);%0A  //console.log(typeof(req.headers.cookie));%0A%0A  //var url = require('url');%0A  //var url_parts = url.parse(req.url, true);%0A  //var query = url_parts.query;%0A%0A  //console.log(url_parts);%0A  //console.log(query);%0A%0A%0A  res.render('index', %7B title: 'Ukazkove rozhrani pro vyhledavani nad radius 
+// --------------------------------------------------------------------------------------%0Arouter.get('/', function(req, res, next) %7B%0A  res.render('index', %7B title: 'et
 log
-y
 ' %7D);%0A
-%0A  //var color = req.param('color');%0A%0A%7D);%0A
+%7D);%0A// --------------------------------------------------------------------------------------
 %0Amod

clean code