mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
Fix GQL introspection and bearer auth templating
This commit is contained in:
@@ -65,13 +65,14 @@ async fn migrate_db(
|
||||
#[tauri::command]
|
||||
async fn send_ephemeral_request(
|
||||
request: models::HttpRequest,
|
||||
environment_id: &str,
|
||||
environment_id: Option<&str>,
|
||||
app_handle: AppHandle<Wry>,
|
||||
db_instance: State<'_, Mutex<Pool<Sqlite>>>,
|
||||
) -> Result<models::HttpResponse, String> {
|
||||
let pool = &*db_instance.lock().await;
|
||||
let response = models::HttpResponse::default();
|
||||
return actually_send_ephemeral_request(request, &response, &environment_id, &app_handle, pool)
|
||||
let environment_id2 = environment_id.unwrap_or("n/a").to_string();
|
||||
return actually_send_ephemeral_request(request, &response, &environment_id2, &app_handle, pool)
|
||||
.await;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "Yaak",
|
||||
"version": "2023.1.6"
|
||||
"version": "2023.1.7"
|
||||
},
|
||||
"tauri": {
|
||||
"windows": [],
|
||||
|
||||
@@ -15,6 +15,8 @@ export function BearerAuth({ requestId, authentication }: Props) {
|
||||
<VStack className="my-2" space={2}>
|
||||
<Input
|
||||
useTemplating
|
||||
autocompleteVariables
|
||||
type="password"
|
||||
label="Token"
|
||||
name="token"
|
||||
size="sm"
|
||||
|
||||
Reference in New Issue
Block a user