always use get_public service, fix #738

This commit is contained in:
jb-alvarado 2024-09-19 20:57:01 +02:00
parent 35020e5149
commit 176dd92017

View File

@ -170,13 +170,8 @@ async fn main() -> std::io::Result<()> {
.service(validate_uuid)
.service(event_stream),
)
.service(get_file);
if ARGS.public.is_none() {
// When no public path is given as argument, use predefine keywords in path,
// like /live; /preview; /public, or HLS extensions to recognize file should get from public folder
web_app = web_app.service(get_public);
}
.service(get_file)
.service(get_public);
#[cfg(all(not(debug_assertions), feature = "embed_frontend"))]
{