def rules(): return [ Rule('list', type=['native']), Rule('upload', '/upload', 'POST', method='Upload'), Rule('ajax', '/ajax_media', method='ajaxMedia') ]
def rules(): return [Rule('list', type=['native'])]
def rules(): return [ Rule('create', '/create', 'POST'), Rule('edit', '/<id>/edit', 'POST') ]
def rules(): return [Rule('edit', '/<id>/edit', 'POST')]
def rules(): return [ Rule('list', '', type = ['native']), Rule('list_delete', '/<id>/delete', 'DELETE', method = 'delete') ]
def rules(): return [ Rule('list', '', type=['native']), Rule('search', '/search', method='Search') ]
def rules(): return [ Rule('create', '/create/<permission_id>/permission', 'POST'), Rule('edit', '/<int:id>/edit/<permission_id>/permission', 'POST') ]
def rules(): return [ Rule('main', '/main'), Rule('logout', '/logout', method='Logout') ]
def rules(): return [ Rule('list', '/<id>/type', 'POST'), Rule('sort', '/sort', 'POST', method='Sort') ]
def rules(): return [Rule('list')]