Skip to content

Commit

Permalink
add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed May 1, 2024
1 parent 94a4cfc commit ce51d28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions examples/express-sample/routes/index.js
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;
6 changes: 3 additions & 3 deletions examples/express-sample/routes/users.js
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;

0 comments on commit ce51d28

Please sign in to comment.