File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -166,17 +166,6 @@ async def movieposters_events_handler(request: Request):
166166 status_code = status .HTTP_200_OK # Use 200 to acknowledge receipt even on error
167167 )
168168
169- # Register Dapr pub/sub subscriptions
170- @app .route ('/dapr/subscribe' , methods = ['GET' ])
171- def subscribe ():
172- """Endpoint to get the Dapr pub/sub subscriptions."""
173- subscriptions = [{
174- 'pubsubname' : STORAGE_QUEUE_BINDING ,
175- 'topic' : 'movieposters-events'
176- }]
177- logging .info ("***** Dapr pub/sub is subscribed to: %s" , json .dumps (subscriptions ))
178- return Response (content = json .dumps (subscriptions ), media_type = "application/json" )
179-
180169@app .post ("/movies" , status_code = status .HTTP_201_CREATED )
181170def add_movie (movie : GeneratedMovie ) -> GeneratedMovie :
182171 """Endpoint to add a new movie."""
You can’t perform that action at this time.
0 commit comments