Skip to content

Commit

Permalink
Simplify the Google Cloud Functions examples
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed May 18, 2022
1 parent 647701e commit 15033fe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 72 deletions.
66 changes: 0 additions & 66 deletions examples/google_cloud_functions/handler.py

This file was deleted.

4 changes: 1 addition & 3 deletions examples/google_cloud_functions/oauth_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def event_test(body, say, logger):


# Flask adapter
# TODO: Once this once a new version newer than 1.13.2, delete handler and enable the slack_bolt.adapter import instead
# from slack_bolt.adapter.google_cloud_functions import SlackRequestHandler
from handler import SlackRequestHandler
from slack_bolt.adapter.google_cloud_functions import SlackRequestHandler
from flask import Request


Expand Down
4 changes: 1 addition & 3 deletions examples/google_cloud_functions/simple_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def event_test(body, say, logger):


# Flask adapter
# TODO: Once this once a new version newer than 1.13.2, delete handler and enable the slack_bolt.adapter import instead
# from slack_bolt.adapter.google_cloud_functions import SlackRequestHandler
from handler import SlackRequestHandler
from slack_bolt.adapter.google_cloud_functions import SlackRequestHandler
from flask import Request


Expand Down

0 comments on commit 15033fe

Please sign in to comment.