Skip to content

Commit

Permalink
fix: resource error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Sep 18, 2023
1 parent 171dfec commit 265bfa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/constructs/business/rest-api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ export class ForumThreadsApiService extends RestApiService {
const root = scope.apiEndpoint.root.addResource('forum');
const boardResource = root.addResource('{board_id}');
const threadResource = boardResource.addResource('{thread_id}');
const userResource = root.addResource('{uid}');
const userResource = root.addResource('user');

const optionsForumHome = root.addCorsPreflight({
allowOrigins: allowOrigins,
Expand Down
4 changes: 3 additions & 1 deletion src/lambda/get-user-threads/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def get_user_threads(uid):


def handler(event, context):
uid = event['queryStringParameters'].get('uid', '')

uid = event['requestContext']['authorizer']['claims']['sub']

# index = event['queryStringParameters'].get('index', '0')
# num = event['queryStringParameters'].get('num', '10')

Expand Down

0 comments on commit 265bfa2

Please sign in to comment.