UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

73 lines (72 loc) 2.07 kB
/* * 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 WEBDAV_BASE_PATH () { return WEBDAV_BASE_PATH; }, get WEBDAV_NS () { return WEBDAV_NS; }, get WEBDAV_SPACES () { return WEBDAV_SPACES; } }); const _appconstants = require("../../../app.constants"); const _spaces = require("../../spaces/constants/spaces"); const WEBDAV_BASE_PATH = 'webdav'; const WEBDAV_NS = { SERVER: _appconstants.SERVER_NAME, WEBDAV: WEBDAV_BASE_PATH, PERSONAL: _spaces.SPACE_ALIAS.PERSONAL, SPACES: _spaces.SPACE_ALIAS.SPACES, SHARES: _spaces.SPACE_ALIAS.SHARES, TRASH: _spaces.SPACE_ALIAS.TRASH }; const WEBDAV_SPACES = { [WEBDAV_NS.SERVER]: { route: '/', spaceRepository: null }, [WEBDAV_NS.WEBDAV]: { route: `/${WEBDAV_BASE_PATH}`, spaceRepository: null }, [WEBDAV_NS.PERSONAL]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.PERSONAL}`, spaceRepository: [ _spaces.SPACE_REPOSITORY.FILES, _spaces.SPACE_ALIAS.PERSONAL ] }, [WEBDAV_NS.SPACES]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.SPACES}`, spaceRepository: [ _spaces.SPACE_REPOSITORY.FILES ] }, [WEBDAV_NS.SHARES]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.SHARES}`, spaceRepository: [ _spaces.SPACE_REPOSITORY.SHARES ] }, [WEBDAV_NS.TRASH]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.TRASH}`, spaceRepository: [ _spaces.SPACE_REPOSITORY.TRASH ] } }; //# sourceMappingURL=routes.js.map