From 8ebf039de993008cf0815278b5e09b7532ab9bc0 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Fri, 12 Apr 2024 17:56:48 +0200 Subject: [PATCH] fix: use POST --- cdk/stacks/BackendStack.ts | 2 +- lambda/queryHistory.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cdk/stacks/BackendStack.ts b/cdk/stacks/BackendStack.ts index 3464fa57..7352b878 100644 --- a/cdk/stacks/BackendStack.ts +++ b/cdk/stacks/BackendStack.ts @@ -118,7 +118,7 @@ export class BackendStack extends Stack { publicDevices, }) - api.addRoute('PUT /credentials', customDevicesAPI.createCredentials) + api.addRoute('POST /credentials', customDevicesAPI.createCredentials) const cd = new ContinuousDeployment(this, { repository, diff --git a/lambda/queryHistory.ts b/lambda/queryHistory.ts index 0c3b23c2..4a270bf9 100644 --- a/lambda/queryHistory.ts +++ b/lambda/queryHistory.ts @@ -89,6 +89,7 @@ const h = async ( return aResponse( 200, { + // FIXME: add to proto-map '@context': new URL( 'https://github.com/hello-nrfcloud/proto-map/history', ),