Skip to content
Snippets Groups Projects
Commit 31f4ba06 authored by Tarje.Lavik's avatar Tarje.Lavik
Browse files

Use full muna context (unfinished)

parent 49271f2b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ export default async function idHandler(req, res) {
const json = toJSONLD(body)
const jsonldData = {
...context,
"@context": "https://muna.xyz/model/0.1/context.json",
...json[0],
}
......
......@@ -10,7 +10,7 @@ export default async function handler(req, res) {
const json = toJSONLD(body)
const jsonldData = {
...context,
"@context": "https://muna.xyz/model/0.1/context.json",
'@graph': json,
}
......
......@@ -15,7 +15,7 @@ export default async function rdfIdHandler(req, res) {
const json = toJSONLD(body)
const jsonldData = {
...context,
"@context": "https://muna.xyz/model/0.1/context.json",
...json[0],
}
......
......@@ -11,7 +11,7 @@ export default async function rdfHandler(req, res) {
const json = toJSONLD(body)
const jsonldData = {
...context,
"@context": "https://muna.xyz/model/0.1/context.json",
'@graph': [...json],
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment