@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
47 lines (46 loc) • 1.39 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 API_SYNC_AUTH_COOKIE () {
return API_SYNC_AUTH_COOKIE;
},
get API_SYNC_CLIENTS () {
return API_SYNC_CLIENTS;
},
get SYNC_BASE_ROUTE () {
return SYNC_BASE_ROUTE;
},
get SYNC_ROUTE () {
return SYNC_ROUTE;
}
});
const _applicationsconstants = require("../../applications.constants");
const SYNC_BASE_ROUTE = 'sync';
const SYNC_ROUTE = {
BASE: `${_applicationsconstants.APP_BASE_ROUTE}/${SYNC_BASE_ROUTE}`,
HANDSHAKE: 'handshake',
REGISTER: 'register',
UNREGISTER: 'unregister',
APP_STORE: 'app-store',
AUTH: 'auth',
CLIENTS: 'clients',
PATHS: 'paths',
OPERATION: 'operation',
DIFF: 'diff',
MAKE: 'make'
};
const API_SYNC_AUTH_COOKIE = `${SYNC_ROUTE.BASE}/${SYNC_ROUTE.AUTH}/cookie`;
const API_SYNC_CLIENTS = `${SYNC_ROUTE.BASE}/${SYNC_ROUTE.CLIENTS}`;
//# sourceMappingURL=routes.js.map