@@ -26,8 +26,8 @@ use terracotta::{
26
26
/// Returns a list of protected routes.
27
27
pub fn protected ( ) -> Vec < ( & ' static str , MethodRouter < Arc < AppState > > ) > {
28
28
vec ! [
29
- ( "/" , get( get_index) ) ,
30
- ( "/*path" , get( get_protected_static_asset) ) ,
29
+ ( "/" , get( get_index) ) ,
30
+ ( "/{ *path} " , get( get_protected_static_asset) ) ,
31
31
]
32
32
}
33
33
@@ -42,10 +42,10 @@ pub fn public() -> Vec<(&'static str, MethodRouter<Arc<AppState>>)> {
42
42
( "/api/stats/feed" , get( get_stats_feed) ) ,
43
43
( "/login" , post( post_login:: <_, Credentials , User , User >) ) ,
44
44
( "/logout" , get( get_logout:: <User >) ) ,
45
- ( "/css/*path" , get( get_public_static_asset) ) ,
46
- ( "/img/*path" , get( get_public_static_asset) ) ,
47
- ( "/js/*path" , get( get_public_static_asset) ) ,
48
- ( "/webfonts/*path" , get( get_public_static_asset) ) ,
45
+ ( "/css/{ *path}" , get( get_public_static_asset) ) ,
46
+ ( "/img/{ *path}" , get( get_public_static_asset) ) ,
47
+ ( "/js/{ *path}" , get( get_public_static_asset) ) ,
48
+ ( "/webfonts/{ *path}" , get( get_public_static_asset) ) ,
49
49
]
50
50
}
51
51
0 commit comments