json-api.js
function (req, res, next) {
      var id
      try { id = decodeURIComponent(req.url.substring(5)) }
      catch (_) { id = req.url.substring(5) }
      if(req.url.substring(0, 5) !== '/msg/' || !ref.isMsg(id)) return next()

      sbot.get(id, function (err, msg) {
        if(err) return next(err)
        send(res, {key: id, value: msg})
      })
    }
function (req, res, next) {
      var id
      try { id = decodeURIComponent(req.url.substring(5)) }
      catch (_) { id = req.url.substring(5) }
      if(req.url.substring(0, 5) !== '/msg/' || !ref.isMsg(id)) return next()

      sbot.get(id, function (err, msg) {
        if(err) return next(err)
        send(res, {key: id, value: msg})
      })
    }
function ( req , res , next ) { var id try { id = decodeURIComponent ( req . url . substring ( 5 ) ) } catch ( _ ) { id = req . url . substring ( 5 ) } if ( req . url . substring ( 0 , 5 ) !== '/msg/' || ! ref . isMsg ( id ) ) return next ( ) sbot . get ( id , function ( err , msg ) { if ( err ) return next ( err ) send ( res , { key : id , value : msg } ) } ) }
blobs are served over CORS, so you can get blobs from any pub.
blobs are served over CORS so you can get blobs from any pub .