const { rest } = window.MockServiceWorker;
import { umbUserGroupData } from '../../data/user-group/user-group.db.js';
import { UMB_SLUG } from './slug.js';
import { umbracoPath } from '@umbraco-cms/backoffice/utils';

export const collectionHandlers = [
	rest.get(umbracoPath(`${UMB_SLUG}`), (req, res, ctx) => {
		const response = umbUserGroupData.getAll();
		return res(ctx.status(200), ctx.json(response));
	}),
];
