From e3369a95843986d06b63be6c653b34864d1a50e9 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Thu, 16 Feb 2017 14:39:48 -0500 Subject: [PATCH] Moved static routes to their own file --- routes/05-static-routes.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 routes/05-static-routes.js diff --git a/routes/05-static-routes.js b/routes/05-static-routes.js new file mode 100644 index 0000000..cbb5127 --- /dev/null +++ b/routes/05-static-routes.js @@ -0,0 +1,6 @@ +var express = require('express'); + +module.exports = function(app, config) { + app.use('/patientimages', express.static(config.imagesdir)); + app.use('/attachments', express.static(config.attachmentsDir)); +};