Skip to content

Commit

Permalink
fix: use POST
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 12, 2024
1 parent 73a6551 commit 8ebf039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cdk/stacks/BackendStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lambda/queryHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
Expand Down

0 comments on commit 8ebf039

Please sign in to comment.