Closed benel closed 6 years ago
In the future simplified rules system, what would be the syntax for the following rules?
"rules": [{ "control": "/(56e092d8a6179a788c74b618b29801c0|a76306e4f17ed4f79e7e481eb9a1bd06)/.test(path) && method != 'GET' && !/^(aurelien|jean_pierre)$/.test(login)", "action": "tryAgain(context)" },{ "control": "method != 'GET' && method != 'OPTIONS'", "action": "authenticate(context, function(){proxyWork(context);});" }]
In the future simplified rules system, what would be the syntax for the following rules?