(contentType)
| 31 | } |
| 32 | |
| 33 | function contentForNew (contentType) { |
| 34 | let contentForNew = '' |
| 35 | if (contentType.includes('ld+json')) contentForNew = JSON.stringify('{}') |
| 36 | else if (contentType.includes('rdf+xml')) contentForNew = '<rdf:RDF\n xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n\n</rdf:RDF>' |
| 37 | return contentForNew |
| 38 | } |
| 39 | |
| 40 | // Handles a PATCH request |
| 41 | async function patchHandler (req, res, next) { |