Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
import { wrapInternalEndpoints } from '../../utilities/wrapInternalEndpoints.js';
|
|
import { docAccessHandler } from './docAccess.js';
|
|
import { findOneHandler } from './findOne.js';
|
|
import { findVersionByIDHandler } from './findVersionByID.js';
|
|
import { findVersionsHandler } from './findVersions.js';
|
|
import { restoreVersionHandler } from './restoreVersion.js';
|
|
import { updateHandler } from './update.js';
|
|
export const defaultGlobalEndpoints = wrapInternalEndpoints([
|
|
{
|
|
handler: docAccessHandler,
|
|
method: 'post',
|
|
path: '/access'
|
|
},
|
|
{
|
|
handler: findOneHandler,
|
|
method: 'get',
|
|
path: '/'
|
|
},
|
|
{
|
|
handler: findVersionByIDHandler,
|
|
method: 'get',
|
|
path: '/versions/:id'
|
|
},
|
|
{
|
|
handler: findVersionsHandler,
|
|
method: 'get',
|
|
path: '/versions'
|
|
},
|
|
{
|
|
handler: restoreVersionHandler,
|
|
method: 'post',
|
|
path: '/versions/:id'
|
|
},
|
|
{
|
|
handler: updateHandler,
|
|
method: 'post',
|
|
path: '/'
|
|
}
|
|
]);
|
|
|
|
//# sourceMappingURL=index.js.map |