-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94a4cfc
commit ce51d28
Showing
2 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
var express = require('express'); | ||
var express = require("express"); | ||
var router = express.Router(); | ||
|
||
/* GET home page. */ | ||
router.get('/', function(req, res, next) { | ||
res.render('index', { | ||
title: 'Express' | ||
}); | ||
router.get("/", function (req, res, next) { | ||
res.render("index", { | ||
title: "Express", | ||
}); | ||
}); | ||
|
||
router.get('/error', function(req, res, next) { | ||
// Call an object that doesn't exist to send an error to Raygun | ||
fakeObject.FakeMethod(); | ||
res.send(500); | ||
router.get("/error", function (req, res, next) { | ||
// Call an object that doesn't exist to send an error to Raygun | ||
fakeObject.FakeMethod(); | ||
res.send(500); | ||
}); | ||
|
||
module.exports = router; | ||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
var express = require('express'); | ||
var express = require("express"); | ||
var router = express.Router(); | ||
|
||
/* GET users listing. */ | ||
router.get('/', function(req, res, next) { | ||
res.send('respond with a resource'); | ||
router.get("/", function (req, res, next) { | ||
res.send("respond with a resource"); | ||
}); | ||
|
||
module.exports = router; |