Skip to content

Commit dae9aca

Browse files
committed
Formatting
1 parent ea1f3ec commit dae9aca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

storage/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To modify the Rules follow these steps:
3232

3333
## Default Rules
3434

35-
```language
35+
```
3636
service firebase.storage {
3737
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
3838
match /{allPaths=**} {
@@ -48,7 +48,7 @@ These rules are very similar to the `Auth` default rules. They mean that any aut
4848

4949
The following rules allows any user to upload, delete and mofify files from your entire bucket. Use this only while developing and testing.
5050

51-
```language
51+
```
5252
service firebase.storage {
5353
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
5454
match /{allPaths=**} {
@@ -62,7 +62,7 @@ service firebase.storage {
6262

6363
Use the following rules if you need to host some files that anyone on the Internet can download, such as images, documents, audio and video.
6464

65-
```language
65+
```
6666
service firebase.storage {
6767
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
6868
match /{allPaths=**} {
@@ -74,7 +74,7 @@ service firebase.storage {
7474

7575
These rules will allow anyone to read the contents of a folder named `public`.
7676

77-
```language
77+
```
7878
service firebase.storage {
7979
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
8080
match /public/} {
@@ -314,14 +314,14 @@ A successful response will look like the following JSON structure:
314314
}
315315
```
316316

317-
### User specific files
317+
### User Specific Files
318318

319319
So far we have worked with the same file (`savegame.data`) in the same location (`savegames` folder),
320320
now we are going to step it up and make it so every registered user can have their own folder with their respective `savegame.data` file.
321321

322322
The following rules specify that only authenticated users can read and write the file `savegame.data` that will be located inside a folder named the same as their `uid` (`localId`):
323323

324-
```json
324+
```
325325
service firebase.storage {
326326
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
327327
match /savegames/{userId}/savegame.data {
@@ -333,7 +333,7 @@ service firebase.storage {
333333

334334
We can use the following rules if we want users to have control over their complete folder:
335335

336-
```json
336+
```
337337
service firebase.storage {
338338
match /b/<YOUR-PROJECT-ID>.appspot.com/o {
339339
match /savegames/{userId}/{allPaths=**} {

0 commit comments

Comments
 (0)