mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-02 01:49:11 +00:00
1.1.3
This commit is contained in:
parent
6a953c100f
commit
40a02e9b3e
1 changed files with 5 additions and 3 deletions
|
@ -83,6 +83,9 @@ async fn main() {
|
||||||
|
|
||||||
let app = ApiRouter::new()
|
let app = ApiRouter::new()
|
||||||
.route("/", Redoc::new("/api.json").axum_route())
|
.route("/", Redoc::new("/api.json").axum_route())
|
||||||
|
.layer(CompressionLayer::new().zstd(true))
|
||||||
|
.route("/api.json", get(serve_api))
|
||||||
|
.layer(CompressionLayer::new().zstd(true))
|
||||||
.api_route(
|
.api_route(
|
||||||
"/arkvc_holdings",
|
"/arkvc_holdings",
|
||||||
get_with(routes::arkvc_holdings, |mut o| {
|
get_with(routes::arkvc_holdings, |mut o| {
|
||||||
|
@ -108,8 +111,7 @@ async fn main() {
|
||||||
.layer(rate_limit_ip())
|
.layer(rate_limit_ip())
|
||||||
.layer(cors())
|
.layer(cors())
|
||||||
.layer(CompressionLayer::new().zstd(true)),
|
.layer(CompressionLayer::new().zstd(true)),
|
||||||
)
|
);
|
||||||
.route("/api.json", get(serve_api));
|
|
||||||
|
|
||||||
let mut api = OpenApi {
|
let mut api = OpenApi {
|
||||||
info: Info {
|
info: Info {
|
||||||
|
@ -120,7 +122,7 @@ async fn main() {
|
||||||
".to_owned(),
|
".to_owned(),
|
||||||
),
|
),
|
||||||
description: Some(
|
description: Some(
|
||||||
"[Github](https://github.com/NexVeridian/ark-invest-api-rust)\n\n[Contact Info](https://NexVeridian.com/About)".to_owned(),
|
"[Github](https://github.com/NexVeridian/ark-invest-api-rust)\n\n[Contact Info](https://NexVeridian.com/about)".to_owned(),
|
||||||
),
|
),
|
||||||
..Info::default()
|
..Info::default()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue