Skip to content
Snippets Groups Projects
Commit f94ef2e9 authored by Martin Wighus Holtmon's avatar Martin Wighus Holtmon
Browse files

projectSecondPart/Problem2 - fixed error in webServer.js (I think)

parent fe8d33e0
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ const portno = 3001; // Port number to use
const app = express();
const PROG2053 = require('./src/model-data/PhotoApp.js').PROG2053;
const PROG2053models = require('./src/model-data/PhotoApp.js');
// We have the express static module (http://expressjs.com/en/starter/static-files.html) do all
// the work for us.
......@@ -35,7 +35,7 @@ app.get('/test/:p1', function (request, response) {
return;
}
const info = PROG2053models.schemaInfo();
const info = PROG2053models.schemaModel();
// Query didn't return an error but didn't find the SchemaInfo object - This
// is also an internal error return.
......@@ -54,7 +54,6 @@ app.get('/user/list', function (request, response) {
return;
});
/*
* URL /user/:id - Return the information for User (id)
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment