
var loadTemplate = require('../loadTemplate')

var getRepository = require('./getRepository')

function UploadEndpoint(req, res, next) {

    var repo = getRepository(req)

    repo.post(req.body, 'application/rdf+xml', (err, callback) => {

        if(err) {
            return next(err)
        }

        res.status(200).send('ok')
    })
}

module.exports = UploadEndpoint



@@ -195,29 +195,35 @@
 dy, 
-'application/rdf+xml'
+req.headers%5B'content-type'%5D
 , (e

Use content-type header in upload endpoint