From ce51d28379c5d1d286cb1943914755a46a9c0ea1 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 1 May 2024 07:37:19 +0200 Subject: [PATCH] add missing files --- examples/express-sample/routes/index.js | 20 ++++++++++---------- examples/express-sample/routes/users.js | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/express-sample/routes/index.js b/examples/express-sample/routes/index.js index 0907a9c..523d931 100644 --- a/examples/express-sample/routes/index.js +++ b/examples/express-sample/routes/index.js @@ -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; \ No newline at end of file +module.exports = router; diff --git a/examples/express-sample/routes/users.js b/examples/express-sample/routes/users.js index 623e430..7981267 100644 --- a/examples/express-sample/routes/users.js +++ b/examples/express-sample/routes/users.js @@ -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;