@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
36 lines (35 loc) • 1.38 kB
JavaScript
/*
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
* This file is part of Sync-in | The open source file sync and share solution
* See the LICENSE file for licensing details
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: Object.getOwnPropertyDescriptor(all, name).get
});
}
_export(exports, {
get WEB_DAV_CONTEXT () {
return WEB_DAV_CONTEXT;
},
get WebDAVContext () {
return WebDAVContext;
},
get WebDAVEnvironment () {
return WebDAVEnvironment;
}
});
const _common = require("@nestjs/common");
const _authbasicguard = require("../../../authentication/guards/auth-basic.guard");
const _webdavfilter = require("../filters/webdav.filter");
const _webdavprotocolguard = require("../guards/webdav-protocol.guard");
const WEB_DAV_CONTEXT = 'WebDAVContext';
const WebDAVContext = ()=>(0, _common.SetMetadata)(WEB_DAV_CONTEXT, true);
const WebDAVEnvironment = ()=>{
return (0, _common.applyDecorators)(WebDAVContext(), (0, _common.UseGuards)(_authbasicguard.AuthBasicGuard, _webdavprotocolguard.WebDAVProtocolGuard), (0, _common.UseFilters)(_webdavfilter.WebDAVExceptionsFilter));
};
//# sourceMappingURL=webdav-context.decorator.js.map