@cuemath/leap 3.0.10-aa8 → 3.0.10-aa9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { createGetAPI as e } from "@cuemath/rest-api";
|
|
2
2
|
import { BASE_URL_V1 as r } from "../../../constants/api.js";
|
3
3
|
import { stringify as i } from "../../../helpers/query-string.js";
|
4
4
|
const { useGet: g } = e({
|
5
|
-
getURL: (o, t) => `${r}/s3-signed-url
|
5
|
+
getURL: (o, t) => `${r}/utility/s3-signed-url/?${i(t)}`
|
6
6
|
});
|
7
7
|
export {
|
8
8
|
g as useAwsSignedKey
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aws-signed-key.js","sources":["../../../../src/features/cue-canvas/api/aws-signed-key.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\n\ninterface IAWSSignedKeyGet {\n studentId: string;\n policy: string;\n signature: string;\n awsKey: string;\n bucketName: string;\n}\n\nexport interface IQuery {\n bucket_name: string;\n upload_path: string;\n expires_in?: number;\n}\n\nconst { useGet: useAwsSignedKey } = createGetAPI<IAWSSignedKeyGet, IQuery>({\n getURL: (_, query) => `${BASE_URL_V1}/s3-signed-url
|
1
|
+
{"version":3,"file":"aws-signed-key.js","sources":["../../../../src/features/cue-canvas/api/aws-signed-key.ts"],"sourcesContent":["import { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V1 } from '../../../constants/api';\nimport { stringify } from '../../../helpers/query-string';\n\ninterface IAWSSignedKeyGet {\n studentId: string;\n policy: string;\n signature: string;\n awsKey: string;\n bucketName: string;\n}\n\nexport interface IQuery {\n bucket_name: string;\n upload_path: string;\n expires_in?: number;\n}\n\nconst { useGet: useAwsSignedKey } = createGetAPI<IAWSSignedKeyGet, IQuery>({\n getURL: (_, query) => `${BASE_URL_V1}/utility/s3-signed-url/?${stringify(query)}`,\n});\n\nexport { useAwsSignedKey };\n"],"names":["useAwsSignedKey","createGetAPI","_","query","BASE_URL_V1","stringify"],"mappings":";;;AAmBA,MAAM,EAAE,QAAQA,EAAgB,IAAIC,EAAuC;AAAA,EACzE,QAAQ,CAACC,GAAGC,MAAU,GAAGC,CAAW,2BAA2BC,EAAUF,CAAK,CAAC;AACjF,CAAC;"}
|