|
@@ -25,6 +25,7 @@ mod snippet;
|
25
|
25
|
use crate::routes::static_rocket_catch_info_for_bad_request;
|
26
|
26
|
use crate::routes::static_rocket_route_info_for_create_snippet;
|
27
|
27
|
use crate::routes::static_rocket_route_info_for_index;
|
|
28
|
+use crate::routes::static_rocket_route_info_for_show_raw_snippet;
|
28
|
29
|
use crate::routes::static_rocket_route_info_for_show_snippet;
|
29
|
30
|
|
30
|
31
|
fn main() {
|
|
@@ -32,7 +33,10 @@ fn main() {
|
32
|
33
|
rocket::ignite()
|
33
|
34
|
.attach(Template::fairing())
|
34
|
35
|
.manage(connection::init_pool())
|
35
|
|
- .mount("/", routes![index, show_snippet, create_snippet])
|
|
36
|
+ .mount(
|
|
37
|
+ "/",
|
|
38
|
+ routes![index, show_snippet, show_raw_snippet, create_snippet],
|
|
39
|
+ )
|
36
|
40
|
.register(catchers![bad_request])
|
37
|
41
|
.launch();
|
38
|
42
|
}
|