Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿš€ result endpoint (#1066)

* ๐Ÿš€ result endpoint

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
e0827506 65325ef4

+4 -1
+3
apps/server/src/v1/monitors/index.ts
··· 7 7 import { registerGetAllMonitors } from "./get_all"; 8 8 import { registerPostMonitor } from "./post"; 9 9 import { registerPutMonitor } from "./put"; 10 + import { registerGetMonitorResult } from "./results/get"; 10 11 import { registerGetMonitorSummary } from "./summary/get"; 11 12 import { registerTriggerMonitor } from "./trigger/post"; 12 13 ··· 21 22 registerGetMonitorSummary(monitorsApi); 22 23 registerPostMonitor(monitorsApi); 23 24 registerTriggerMonitor(monitorsApi); 25 + registerGetMonitorResult(monitorsApi); 26 + 24 27 export { monitorsApi };
+1 -1
apps/server/src/v1/monitors/results/get.ts
··· 75 75 }, 76 76 }); 77 77 78 - export function registerGetMonitorSummary(api: typeof monitorsApi) { 78 + export function registerGetMonitorResult(api: typeof monitorsApi) { 79 79 return api.openapi(getMonitorStats, async (c) => { 80 80 const workspaceId = c.get("workspaceId"); 81 81 const { id, resultId } = c.req.valid("param");