Make access a bit more restricted
This commit is contained in:
parent
984c8bcdcc
commit
dc55126b95
3 changed files with 7 additions and 4 deletions
|
|
@ -5,7 +5,10 @@ use axum::{
|
|||
|
||||
use crate::handlers;
|
||||
|
||||
pub fn by_code(code: Option<u16>, message: Option<&str>) -> Response<Body> {
|
||||
pub(in crate::handlers) fn by_code(
|
||||
code: Option<u16>,
|
||||
message: Option<&str>,
|
||||
) -> Response<Body> {
|
||||
let out_code = code.unwrap_or(500);
|
||||
let out_message = &message.unwrap_or("Unknown error");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue