mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Update to allow auth (api-key)
This commit is contained in:
@ -117,11 +117,6 @@ function TableDeveloperView({table}: Props): JSX.Element
|
|||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
const beforeTry = (e: any) =>
|
|
||||||
{
|
|
||||||
e.detail.request.headers.append("Authorization", "Bearer " + accessToken);
|
|
||||||
};
|
|
||||||
|
|
||||||
const selectApi = async (event: SelectChangeEvent) =>
|
const selectApi = async (event: SelectChangeEvent) =>
|
||||||
{
|
{
|
||||||
setSelectedApi(null);
|
setSelectedApi(null);
|
||||||
@ -208,11 +203,11 @@ function TableDeveloperView({table}: Props): JSX.Element
|
|||||||
font-size="large"
|
font-size="large"
|
||||||
render-style="view"
|
render-style="view"
|
||||||
show-header={false}
|
show-header={false}
|
||||||
allow-authentication={false}
|
allow-authentication={true}
|
||||||
|
persist-auth={true}
|
||||||
allow-server-selection={false}
|
allow-server-selection={false}
|
||||||
allow-spec-file-download={true}
|
allow-spec-file-download={true}
|
||||||
sort-endpoints-by="method"
|
sort-endpoints-by="method"
|
||||||
beforeTry={beforeTry}
|
|
||||||
schema-description-expanded={true}
|
schema-description-expanded={true}
|
||||||
css-file={"/api/rapi-doc.css"}
|
css-file={"/api/rapi-doc.css"}
|
||||||
css-classes={"qqq-rapi-doc"}
|
css-classes={"qqq-rapi-doc"}
|
||||||
|
Reference in New Issue
Block a user