add auth middleware
This commit is contained in:
@@ -60,8 +60,7 @@ Resources:
|
||||
EnableFunctionDefaultPermissions: true
|
||||
EnableSimpleResponses: true
|
||||
Identity:
|
||||
Headers:
|
||||
- Authorization
|
||||
Headers: [Authorization]
|
||||
|
||||
HttpApiFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
@@ -81,10 +80,10 @@ Resources:
|
||||
Path: /{proxy+}
|
||||
Method: ANY
|
||||
ApiId: !Ref HttpApi
|
||||
Swagger:
|
||||
Lookup:
|
||||
Type: HttpApi
|
||||
Properties:
|
||||
Path: /_swagger
|
||||
Path: /lookup/{username}
|
||||
Method: GET
|
||||
ApiId: !Ref HttpApi
|
||||
Auth:
|
||||
|
||||
Reference in New Issue
Block a user