UNPKG

node-appwrite

Version:

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

25 lines (18 loc) 420 B
class Permission { static read = (role) => { return `read("${role}")` } static write = (role) => { return `write("${role}")` } static create = (role) => { return `create("${role}")` } static update = (role) => { return `update("${role}")` } static delete = (role) => { return `delete("${role}")` } } module.exports = Permission;