Skip to content

Commit e12b817

Browse files
committed
Remove unnecessary use of R404
The outer R404 will catch any routing errors, so it is unnecessary here.
1 parent 37dfe98 commit e12b817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub fn build_router(app: &App) -> R404 {
103103
C(user::me::regenerate_token_and_send),
104104
);
105105
api_router.get("/site_metadata", C(site_metadata::show_deployed_sha));
106-
let api_router = Arc::new(R404(api_router));
106+
let api_router = Arc::new(api_router);
107107

108108
let mut router = RouteBuilder::new();
109109

0 commit comments

Comments
 (0)