Permalink
Browse files

Preparing view page

  • Loading branch information...
1 parent b80b9e8 commit ab8705ba44278e8a07948dbb4e168cf94ea7bbe9 @fabianhjr fabianhjr committed Dec 13, 2012
Showing with 14 additions and 1 deletion.
  1. +5 −1 server/app.js
  2. +9 −0 server/views/view.jade
View
@@ -15,9 +15,13 @@ var saveReport = function(report){
};
app.get('/', function(req, res){
- res.render('index', {})
+ res.render('index', {});
})
+app.get('/view/:id', function(req, res){
+ res.render('view', {image: {path: "upload/image.jpg"}, location: [0.0, 0.0], time: 1355367080.533427, type: "CHOQUE"});
+});
+
// POST Datos
app.post('/newreport', function(req, res){
try {
View
@@ -0,0 +1,9 @@
+doctype 5
+html
+ head
+ body
+ h1 Reporte
+ img(src=image.path)
+ p= type
+ p= time
+ p= location

0 comments on commit ab8705b

Please sign in to comment.