Skip to content

Commit fd8b426

Browse files
committed
Remove Dapr pub/sub subscription endpoint from movie gallery service
1 parent d7c25b2 commit fd8b426

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/movie_gallery_svc/main.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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)
181170
def add_movie(movie: GeneratedMovie) -> GeneratedMovie:
182171
"""Endpoint to add a new movie."""

0 commit comments

Comments
 (0)