forked from EduCraft/curriculum-project-hub
feat: add deployable alpha silo
This commit is contained in:
@@ -23,6 +23,7 @@ export interface AdminPluginConfig {
|
||||
readonly cookieSecure?: boolean;
|
||||
readonly oauthScope?: string;
|
||||
readonly fetchImpl?: typeof fetch;
|
||||
readonly allowLegacyFeishuOAuth?: boolean;
|
||||
}
|
||||
|
||||
export async function registerAdminPlugin(
|
||||
@@ -40,9 +41,13 @@ export async function registerAdminPlugin(
|
||||
publicBaseUrl: config.publicBaseUrl,
|
||||
feishuAppId: config.feishuAppId,
|
||||
feishuAppSecret: config.feishuAppSecret,
|
||||
secretEnvelope: config.secretEnvelope,
|
||||
cookieSecure,
|
||||
...(config.oauthScope !== undefined ? { oauthScope: config.oauthScope } : {}),
|
||||
...(config.fetchImpl !== undefined ? { fetchImpl: config.fetchImpl } : {}),
|
||||
...(config.allowLegacyFeishuOAuth !== undefined
|
||||
? { allowLegacyFeishuOAuth: config.allowLegacyFeishuOAuth }
|
||||
: {}),
|
||||
});
|
||||
|
||||
await registerOrgRoutes(app, {
|
||||
|
||||
Reference in New Issue
Block a user