Skip to content

Commit 1631ec4

Browse files
authored
Update main.py (GoogleCloudPlatform#4391)
1 parent 88d8712 commit 1631ec4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

run/events-storage/main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# [START run_events_gcs_server_setup]
14+
# [START run_events_gcs_handler]
1515
import os
1616

1717
from flask import Flask, request
1818

1919

2020
required_fields = ['Ce-Id', 'Ce-Source', 'Ce-Type', 'Ce-Specversion']
21-
2221
app = Flask(__name__)
23-
# [END run_events_gcs_server_setup]
2422

2523

26-
# [START run_events_gcs_handler]
2724
@app.route('/', methods=['POST'])
2825
def index():
2926
for field in required_fields:

0 commit comments

Comments
 (0)