mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Put CORS at the bottom of Local API
This commit is contained in:
parent
5174571cd8
commit
c6f351352b
@ -22,7 +22,6 @@ use tower_http::cors::CorsLayer;
|
||||
|
||||
pub fn local_api() -> Router {
|
||||
Router::new()
|
||||
.layer(CorsLayer::very_permissive())
|
||||
.route("/dashletThemes", get(dashboard_themes::list_themes))
|
||||
.route("/dashletSave", post(dashboard_themes::save_theme))
|
||||
.route("/dashletDelete", post(dashboard_themes::delete_theme))
|
||||
@ -57,5 +56,6 @@ pub fn local_api() -> Router {
|
||||
.route("/flowTimeline/:asn_id", get(flow_explorer::flow_timeline))
|
||||
.route("/countryTimeline/:iso_code", get(flow_explorer::country_timeline))
|
||||
.route("/protocolTimeline/:protocol", get(flow_explorer::protocol_timeline))
|
||||
.layer(CorsLayer::very_permissive())
|
||||
.route_layer(axum::middleware::from_fn(auth_layer))
|
||||
}
|
Loading…
Reference in New Issue
Block a user