File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use log::info;
5
5
6
6
use tera:: Tera ;
7
7
8
- use crate :: routes:: { get_ad , get_index, get_preview_video} ;
8
+ use crate :: routes:: { get_preview_ad , get_index, get_preview_video} ;
9
9
10
10
#[ derive( Debug ) ]
11
11
pub struct State {
@@ -45,7 +45,7 @@ impl Application {
45
45
// build our application with a single route
46
46
let app = Router :: new ( )
47
47
. route ( "/" , get ( get_index) )
48
- . route ( "/preview/ad" , get ( get_ad ) )
48
+ . route ( "/preview/ad" , get ( get_preview_ad ) )
49
49
. route ( "/preview/video" , get ( get_preview_video) )
50
50
. layer ( Extension ( self . state . clone ( ) ) ) ;
51
51
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ pub async fn get_index(Extension(state): Extension<Arc<State>>) -> Html<String>
32
32
Html ( html)
33
33
}
34
34
35
- /// `GET /ad`
36
- pub async fn get_ad ( Extension ( state) : Extension < Arc < State > > ) -> Html < String > {
35
+ /// `GET /preview/ ad`
36
+ pub async fn get_preview_ad ( Extension ( state) : Extension < Arc < State > > ) -> Html < String > {
37
37
// For mocking the `get_market_demand_resp` call
38
38
let mock_server = MockServer :: start ( ) . await ;
39
39
You can’t perform that action at this time.
0 commit comments