Skip to content

Commit

Permalink
dodan json-ld
Browse files Browse the repository at this point in the history
  • Loading branch information
michelh-fer committed Jan 17, 2021
1 parent 53218b0 commit 842e9c2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion or-lab3/routes/index.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,17 @@ router.get('/videoigre/:videogameID', async function(req, res, next) {
let videogameSchema = {
"status": "OK",
"message": "Dohvaćen objekt videoigre",
"response": game
"response": {
"@context": {
"@vocab": "http://schema.org/",
"nazivvideoigra": "name",
"godinaizdanja": "datePublished",
"multiplayer": "playMode",
"nazivproizvodac": "author",
"nazivizdavac": "publisher"
},
game
}
}

res.status(200).json(videogameSchema,
Expand Down

0 comments on commit 842e9c2

Please sign in to comment.