File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "env" : {
3
+ "es6" : true
4
+ }
5
+ }
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
1
3
const functions = require ( 'firebase-functions' ) ;
2
4
const gcs = require ( '@google-cloud/storage' ) ( ) ;
3
5
const path = require ( 'path' ) ;
@@ -8,6 +10,7 @@ function sendStoredFile(request, response) {
8
10
let filePathSegments = request . path . split ( '/' ) . filter ( ( segment ) => {
9
11
return segment !== '' ;
10
12
} ) ;
13
+
11
14
const version = filePathSegments [ 0 ] ;
12
15
const isDocsPath = filePathSegments [ 1 ] === 'docs' ;
13
16
const lastSegment = filePathSegments [ filePathSegments . length - 1 ] ;
@@ -60,4 +63,4 @@ function sendStoredFile(request, response) {
60
63
}
61
64
}
62
65
63
- exports . sendStoredFile = functions . https . onRequest ( sendStoredFile ) ;
66
+ exports . sendStoredFile = functions . https . onRequest ( sendStoredFile ) ;
You can’t perform that action at this time.
0 commit comments