File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Call your http server stack code using an in memory http listener. No sockets ne
7
7
[ ![ downloads] ( https://img.shields.io/npm/dm/google-cloud-function-http-server.svg )] ( https://npmjs.org/package/google-cloud-function-http-server )
8
8
[ ![ Greenkeeper badge] ( https://badges.greenkeeper.io/JamesKyburz/google-cloud-function-http-server.svg )] ( https://greenkeeper.io/ )
9
9
10
- ## server .js
10
+ ## index .js
11
11
12
12
``` javascript
13
13
require (' http' ).createServer ((req , res ) => {
@@ -16,10 +16,10 @@ require('http').createServer((req, res) => {
16
16
.listen (5000 )
17
17
```
18
18
19
- ## google-cloud-function .js
19
+ ## proxy .js
20
20
21
21
``` javascript
22
- exports .proxy = require (' google-cloud-function-http-server' )
22
+ exports .http = require (' google-cloud-function-http-server' )
23
23
require (' ./index.js' )
24
24
```
25
25
@@ -40,7 +40,7 @@ functions:
40
40
proxy :
41
41
environment :
42
42
SERVER_PORT : " 5000"
43
- handler : proxy
43
+ handler : http
44
44
events :
45
45
- http : path
46
46
` ` `
You can’t perform that action at this time.
0 commit comments