You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you go to the root, a message is processed
HTMLResponse(content=html_content, status_code=200)
html
fetch('/get_data', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
}.......
As a result, it goes to get_data where I already receive data (from html tg api) but I also need my application to display it to me app.mount('/', flet_fastapi.app(root_main))
But I don't understand how to do this. Either the application opens for me, but the data is not displayed, or vice versa. I need to receive the data and display the application to which I will ultimately transfer this data, I might have understood what it was before, but I didn’t work much with the fast api
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
When you go to the root, a message is processed
HTMLResponse(content=html_content, status_code=200)
html
fetch('/get_data', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
}.......
As a result, it goes to get_data where I already receive data (from html tg api) but I also need my application to display it to me app.mount('/', flet_fastapi.app(root_main))
But I don't understand how to do this. Either the application opens for me, but the data is not displayed, or vice versa. I need to receive the data and display the application to which I will ultimately transfer this data, I might have understood what it was before, but I didn’t work much with the fast api
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions