Skip to content

FastAPI multiple StreamRouters #677

Answered by Lancetnik
JoshJarabek7 asked this question in Q&A
Discussion options

You must be logged in to vote

As I understood you correct, you are trying to create broker in the same with FastAPI application file (app.main) and declare some handler in the other file. But you can create the broker in the same with handlers file (app.user.api) and just import it in the app.main

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
14 replies
@Lancetnik
Comment options

@dimbler
Comment options

@Lancetnik
Comment options

@danielriegert
Comment options

@Lancetnik
Comment options

Answer selected by JoshJarabek7
Comment options

You must be logged in to vote
1 reply
@Lancetnik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants