()
| 4544 | } |
| 4545 | |
| 4546 | fn plugin_auth_routes() -> Router<Arc<ServerState>> { |
| 4547 | Router::new() |
| 4548 | .route("/auth", get(list_plugin_auth)) |
| 4549 | .route("/{name}/auth/authorize", post(plugin_auth_authorize)) |
| 4550 | .route("/{name}/auth/callback", post(plugin_auth_callback)) |
| 4551 | .route("/{name}/auth/load", post(plugin_auth_load)) |
| 4552 | .route("/{name}/auth/fetch", post(plugin_auth_fetch)) |
| 4553 | } |
| 4554 | |
| 4555 | #[derive(Debug, Serialize)] |
| 4556 | struct PluginAuthInfo { |