aboutsummaryrefslogtreecommitdiff
path: root/javascript/server/mocks
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/server/mocks')
-rw-r--r--javascript/server/mocks/packages.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/javascript/server/mocks/packages.js b/javascript/server/mocks/packages.js
index 5da80b2..0a60cf3 100644
--- a/javascript/server/mocks/packages.js
+++ b/javascript/server/mocks/packages.js
@@ -380,15 +380,15 @@ const testModuleInfo = {
module.exports = function(app) {
const express = require('express');
let packagesRouter = express.Router();
-
- packagesRouter.get('/api/packages', function(req, res) {
+
+ packagesRouter.get('/api/packages', function(req, res) {
res.send(packages);
- });
-
+ });
+
packagesRouter.get('/files/test-package-0.1.0.0/.haskell-code-explorer/packageInfo.json', function(req, res) {
res.send(testPackage);
});
-
+
packagesRouter.get('/files/test-package-0.1.0.0/.haskell-code-explorer/app%252FMain.hs.json', function(req, res) {
res.send(testModuleInfo);
});