Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Wighus Holtmon
PROG2053-Project
Commits
f94ef2e9
Commit
f94ef2e9
authored
Nov 12, 2021
by
Martin Wighus Holtmon
Browse files
projectSecondPart/Problem2 - fixed error in webServer.js (I think)
parent
fe8d33e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
projectSecondPart/webServer.js
View file @
f94ef2e9
...
...
@@ -15,7 +15,7 @@ const portno = 3001; // Port number to use
const
app
=
express
();
const
PROG2053
=
require
(
'
./src/model-data/PhotoApp.js
'
)
.
PROG2053
;
const
PROG2053
models
=
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
.
schema
Info
();
const
info
=
PROG2053models
.
schema
Model
();
// 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)
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment