Actix Web 4 - default_service SPA #2473
Answered
by
staninprague
StefanRupertsberger
asked this question in
Q&A
-
I want to serve a SPA with actix-web and I used to do it like this: Example. |
Beta Was this translation helpful? Give feedback.
Answered by
staninprague
Dec 6, 2021
Replies: 1 comment
-
Here is a possible solution, not tested, only proof of concept that compiles:
And spa_index function:
Hope it might help. I have much more elaborated spa_index, so only crafted the above as a theoretical exercise that compiles and looks like it might be working. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
StefanRupertsberger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a possible solution, not tested, only proof of concept that compiles:
And spa_index function:
Hope it might help. I have much more elaborated spa_index, so only crafted the above as a theoretical exercise that compiles and looks like it might be working.