UNPKG

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

23 lines (17 loc) 472 B
export class Permission { static read = (role: string): string => { return `read("${role}")` } static write = (role: string): string => { return `write("${role}")` } static create = (role: string): string => { return `create("${role}")` } static update = (role: string): string => { return `update("${role}")` } static delete = (role: string): string => { return `delete("${role}")` } }