Skip to content

Commit 8ebf039

Browse files
committed
fix: use POST
1 parent 73a6551 commit 8ebf039

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cdk/stacks/BackendStack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class BackendStack extends Stack {
118118
publicDevices,
119119
})
120120

121-
api.addRoute('PUT /credentials', customDevicesAPI.createCredentials)
121+
api.addRoute('POST /credentials', customDevicesAPI.createCredentials)
122122

123123
const cd = new ContinuousDeployment(this, {
124124
repository,

lambda/queryHistory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const h = async (
8989
return aResponse(
9090
200,
9191
{
92+
// FIXME: add to proto-map
9293
'@context': new URL(
9394
'https://github.com/hello-nrfcloud/proto-map/history',
9495
),

0 commit comments

Comments
 (0)