diff --git a/content/post/enterprisey.md b/content/post/enterprisey.md index 5a2dd06..d3daa6d 100644 --- a/content/post/enterprisey.md +++ b/content/post/enterprisey.md @@ -8,7 +8,7 @@ Why not use the coolest language out there to do the things you probably still u That said, a framework like spring-boot is pretty mature. It may just be a hassle trying to accomplish those nice features... -### Challenge accepted... +_Challenge accepted..._ Start a new project {{}} @@ -193,7 +193,7 @@ async fn get_blogs(Extension(pool): Extension) -> Result}} * async function -* Not the peculiar syntax ```Extension(pool): Extension```. This is pattern matching on function arguments. The actual argument will be passed by Axum. We only need the pool and this way we can extract it from the Extension. +* Note the peculiar syntax ```Extension(pool): Extension```. This is pattern matching on function arguments. The actual argument will be passed by Axum. We only need the pool and this way we can extract it from the Extension. * For Json you need to wrap the result ```Vec``` in a ```axum::Json``` struct. * ```map_err``` is called with function argument ```internal_error```. This function maps any runtime error to http code 500. diff --git a/content/post/enterprisey2.md b/content/post/enterprisey2.md index 367434e..4807831 100644 --- a/content/post/enterprisey2.md +++ b/content/post/enterprisey2.md @@ -15,7 +15,7 @@ let app = Router::new() .layer(Extension(pool)); {{}} -And this is the ```add_blog`` function: +And this is the ```add_blog``` function: {{}} async fn add_blog(Extension(pool): Extension, ValidatedJson(blog): ValidatedJson) -> Result, (StatusCode, String)> {