如何设置Firebase规则,取决于路径名?
示例路径
/数据库/(默认)/ _ TEST_documents1
service cloud.firestore {
match /databases/{database}/documents1 {
//match /{Xdocument=**} {
// allow read: if true;
// allow write: if true;
//}
match /_TEST_/{path=**} {
allow read: if true;
allow write: if true;
}
}
}
我有几个具有相同模式的路径。我想知道的是,如果我可以设置一条通用规则,而不是再一次单独设置每条路径。
要优化的示例:
问题是如何通用文件夹部分。请求的问题是不授予整个databases/{database}/documents1
完全访问权限。