'use strict';
import { getInternalResourceMeta } from '../../meta/server/resources/internal-resource-meta.js';
import { apiOkResponse } from '../../meta/server/web/responses.js';
import { apiNotFoundError, apiMethodNotAllowedError } from '../../../fd-toolbox/server/web/errors.js';
import { getPermissions } from '../fd/fd-toolbox-web/auth/permissions/permission-db.js';

var __defProp=Object['defineProperty'],__name=(_0x5cec26,_0x199797)=>__defProp(_0x5cec26,'name',{'value':_0x199797,'configurable':!![]});async function examplePutRoute(_0x16acbd,{params:_0x2eafc9}){const _0x4752b3=_0x2eafc9['resource'],_0x5c5fd0=await getInternalResourceMeta(_0x4752b3);if(!_0x5c5fd0)throw apiNotFoundError();return apiOkResponse(_0x5c5fd0);}__name(examplePutRoute,'examplePutRoute');async function exampleGetRoute(){const _0x4cc209=await getPermissions();if(!_0x4cc209)throw apiNotFoundError();return apiOkResponse(_0x4cc209);}__name(exampleGetRoute,'exampleGetRoute');function examplePostRoute(_0x27ed1a,{params:_0xc93c06}){const _0x2ff6e1=_0xc93c06['resource'];return Promise['reject'](apiMethodNotAllowedError(_0x2ff6e1+'\x20POST\x20method\x20not\x20implemented'));}__name(examplePostRoute,'examplePostRoute');function exampleDeleteRoute(_0x348a51,{params:_0x1a6546}){const _0x44ae63=_0x1a6546['resource'];return Promise['reject'](apiMethodNotAllowedError(_0x44ae63+'\x20DELETE\x20method\x20not\x20implemented'));}__name(exampleDeleteRoute,'exampleDeleteRoute');

export { exampleDeleteRoute, exampleGetRoute, examplePostRoute, examplePutRoute };
