diff --git a/workbench/host/routes.mjs b/workbench/host/routes.mjs index 0541e94..764d69f 100644 --- a/workbench/host/routes.mjs +++ b/workbench/host/routes.mjs @@ -361,6 +361,29 @@ export function buildRouteTable(service, options = {}) { revisesArtifactId: body.revisesArtifactId, }), }, + [`${ROUTE_PREFIX}/memory/get`]: { + method: 'POST', + handler: async ({ body }) => service.getMemory({ + scope: body.scope, + projectId: select(body), + }), + }, + [`${ROUTE_PREFIX}/memory/put`]: { + method: 'POST', + handler: async ({ body }) => service.putMemory({ + scope: body.scope, + projectId: select(body), + text: body.text, + }), + }, + [`${ROUTE_PREFIX}/memory/append`]: { + method: 'POST', + handler: async ({ body }) => service.appendMemory({ + scope: body.scope, + projectId: select(body), + text: body.text, + }), + }, [`${ROUTE_PREFIX}/events`]: { method: 'GET', handler: async ({ query, req, res }) => {