Improve api schema
This commit is contained in:
parent
f23bb48fa1
commit
f9ad8f9399
9 changed files with 123 additions and 164 deletions
src
|
@ -71,11 +71,8 @@ async fn main() -> Result<(), std::io::Error> {
|
|||
}
|
||||
});
|
||||
|
||||
let mut api_v1_json =
|
||||
let api_v1_json =
|
||||
serde_json::from_str(include_str!("../api.v1.json")).unwrap_or(api_default.clone());
|
||||
api_v1_json["servers"] = json!([{
|
||||
"url": "/",
|
||||
}]);
|
||||
|
||||
|
||||
App::new()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue