mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 09:11:21 +10:00
feat(acls): refactor & acl descriptions
This commit is contained in:
@ -15,13 +15,4 @@ export default defineNitroPlugin(async (nitro) => {
|
||||
const store = fsCertificateStore(basePath);
|
||||
|
||||
ca = await CertificateAuthority.new(store);
|
||||
|
||||
nitro.hooks.hook("request", (h3) => {
|
||||
if (!ca)
|
||||
throw createError({
|
||||
statusCode: 500,
|
||||
statusMessage: "Certificate authority not initialised",
|
||||
});
|
||||
h3.context.ca = ca;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user