mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
57b6e9aca4
closes #6930
28 lines
651 B
TypeScript
28 lines
651 B
TypeScript
import { PluginManager, Hook } from "@server/utils/PluginManager";
|
|
import config from "../plugin.json";
|
|
import router from "./auth/passkeys";
|
|
import api from "./api/passkeys";
|
|
import { PasskeyCreatedProcessor } from "./processors/PasskeyCreatedProcessor";
|
|
import { PasskeyCreatedEmail } from "./email/templates/PasskeyCreatedEmail";
|
|
|
|
PluginManager.add([
|
|
{
|
|
...config,
|
|
type: Hook.AuthProvider,
|
|
value: { router, id: config.id },
|
|
},
|
|
{
|
|
...config,
|
|
type: Hook.API,
|
|
value: api,
|
|
},
|
|
{
|
|
type: Hook.Processor,
|
|
value: PasskeyCreatedProcessor,
|
|
},
|
|
{
|
|
type: Hook.EmailTemplate,
|
|
value: PasskeyCreatedEmail,
|
|
},
|
|
]);
|