index.js
function create (key, scopes, callback) {
    const data = {
      key: key,
      scopes: scopes
    }

    db.put(key, data, function (err) {
      if (err) return callback(err)
      else callback(null, data)
    })
  }
function create (key, scopes, callback) {
    const data = {
      key: key,
      scopes: scopes
    }

    db.put(key, data, function (err) {
      if (err) return callback(err)
      else callback(null, data)
    })
  }
function create ( key , scopes , callback ) { const data = { key : key , scopes : scopes } db . put ( key , data , function ( err ) { if ( err ) return callback ( err ) else callback ( null , data ) } ) }
Create a set of access scopes

@name access.create
@memberof townshipAccess
@param {string} key - the key for the access scopes
@param {array} scopes - array of strings
@param {function} callback - callback with `err`, `data` arguments
Create a set of access scopes