add missing handler for the log viewer

This commit is contained in:
Julia Gru
2023-03-09 16:40:42 +01:00
parent 1906ec9594
commit 07f8f12cb2

View File

@@ -65,6 +65,10 @@ export const handlers = [
return res(ctx.delay(), ctx.status(200), ctx.json(umbLogviewerData.logs.getLevelCount()));
}),
rest.get(umbracoPath('/log-viewer/validate-logs-size'), (req, res, ctx) => {
return res(ctx.delay(), ctx.status(200));
}),
rest.get(umbracoPath('/log-viewer/log'), (req, res, ctx) => {
const skip = req.url.searchParams.get('skip');
const skipNumber = skip ? Number.parseInt(skip) : undefined;