File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed
Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 2.0" ,
3+ "app_name" : " chalice" ,
4+ "stages" : {
5+ "dev" : {
6+ "api_gateway_stage" : " api"
7+ }
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ .chalice /deployments /
2+ .chalice /venv /
Original file line number Diff line number Diff line change 1+ import json
2+
3+ from chalice import Chalice
4+ from environs import Env
5+
6+ from zeroae .goblet import chalice as goblet
7+
8+ # Load Configuration Options
9+ env : Env = Env ()
10+ env .read_env ()
11+ goblet .configure (env )
12+
13+ # Register the Application
14+ app = Chalice (app_name = "chalice" )
15+ app .experimental_feature_flags .update (["BLUEPRINTS" ])
16+ app .register_blueprint (goblet .bp , name_prefix = "gh" )
17+
18+
19+ @goblet .bp .on_gh_event ("ping" )
20+ def ping (payload ):
21+ app .log .info (json .dumps (payload ))
Original file line number Diff line number Diff line change 1+ zeroae-goblet
You can’t perform that action at this time.
0 commit comments