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
I have directory in src-tauri called "vault", Im serving it like this:
let default_route = warp::path("vault").and(warp::fs::dir("vault"));let routes = default_route;
warp::serve(routes).run(([127,0,0,1],3030)).await;
This useless code is here because I simplified all routing to single directory route, for debugging.
This code runs in .setup() >> tauri::async_runtime::spawn() >> file_server(). Warp server works fine. I have problem only when Im trying to serve directory, Everything forks fine if serving file from the same directory. The problem is that it gives 404 Not found on GET request to /vault. I though maybe it couldn't find the directory so I even added vault directory to every layer of my tauri app. The problem is not with that.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have directory in src-tauri called "vault", Im serving it like this:
This useless code is here because I simplified all routing to single directory route, for debugging.
This code runs in
.setup()
>>tauri::async_runtime::spawn()
>>file_server()
. Warp server works fine. I have problem only when Im trying to serve directory, Everything forks fine if serving file from the same directory. The problem is that it gives404 Not found
on GET request to/vault
. I though maybe it couldn't find the directory so I even addedvault
directory to every layer of my tauri app. The problem is not with that.Beta Was this translation helpful? Give feedback.
All reactions