always use get_public service, fix #738
This commit is contained in:
parent
35020e5149
commit
176dd92017
@ -170,13 +170,8 @@ async fn main() -> std::io::Result<()> {
|
|||||||
.service(validate_uuid)
|
.service(validate_uuid)
|
||||||
.service(event_stream),
|
.service(event_stream),
|
||||||
)
|
)
|
||||||
.service(get_file);
|
.service(get_file)
|
||||||
|
.service(get_public);
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(all(not(debug_assertions), feature = "embed_frontend"))]
|
#[cfg(all(not(debug_assertions), feature = "embed_frontend"))]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user