fix hot reloading in router example
This commit is contained in:
1 parent
064bee4a9f
commit
3c002913eb
2 files changed
+5
-7
No files matched your search
@@ -50,6 +50,8 @@ fn main() {
|
||||
axum::Router::new()
|
||||
// Register server functions
|
||||
.register_server_fns("")
|
||||
// Connect to the hot reload server
|
||||
.connect_hot_reload()
|
||||
// Serve the static assets folder
|
||||
.nest_service("/assets", serve_dir)
|
||||
// If the path is unknown, render the application
|
||||
|
||||
Reference in new issue
Block a user