File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 77 * See a full list of supported triggers at https://firebase.google.com/docs/functions
88 */
99
10- import { onRequest } from "firebase-functions/v2/https" ;
10+ import { onRequest } from "firebase-functions/v2/https" ;
1111import * as logger from "firebase-functions/logger" ;
1212import * as express from "express" ;
1313
14-
1514// Start writing functions
1615// https://firebase.google.com/docs/functions/typescript
1716
1817export const helloWorld = onRequest (
19- { cors : [ / ^ h t t p s : \/ \/ t h i n g s - t o - c o m p l e t e \. w e b \. a p p \/ .* / ] } ,
18+ { cors : [ / ^ h t t p s : \/ \/ t h i n g s - t o - c o m p l e t e \. w e b \. a p p \/ .* / ] } ,
2019 ( request : express . Request , response : express . Response ) => {
21- logger . info ( "Hello logs!" , { structuredData : true } ) ;
20+ logger . info ( "Hello logs!" , { structuredData : true } ) ;
2221 response
2322 . status ( 200 )
24- . send ( { message : "Hello from Firebase with TypeScript * cors!" } ) ;
23+ . send ( { message : "Hello from Firebase with TypeScript * cors!" } ) ;
2524 }
2625) ;
You can’t perform that action at this time.
0 commit comments