Skip to content

Commit

Permalink
Merge pull request #52 from joog-lim/develop
Browse files Browse the repository at this point in the history
feature version 2.1.6
  • Loading branch information
sunrabbit123 authored Oct 27, 2021
2 parents e0c0fab + dd6505b commit e09c622
Show file tree
Hide file tree
Showing 9 changed files with 732 additions and 344 deletions.
6 changes: 4 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
MONGO_URL=
DISCORD_WEBHOOK=
DISCORD_TEST_WEBHOOK=
DISCORD_ACCEPTED_WEBHOOK=
DISCORD_RECJECTED_WEBHOOK=
DISCORD_REPORT_WEBHOOK=
DISCORD_MANAGEMENT_WEBHOOK=
DISCORD_ABOUT_DELETE_WEBHOOK=
ADMIN_PASSWORD=
JWT_SECRET=
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bamboo-api",
"version": "2.0.0",
"version": "2.1.6",
"repository": "https://github.com/Promotion-official/bamboo-server.git",
"author": "sunrabbit123 <qudwls185@naver.com>",
"license": "Apache-2.0",
Expand Down
24 changes: 19 additions & 5 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider:
runtime: nodejs14.x
lambdaHashingVersion: 20201221
region: ap-northeast-2
stage: apiV2
stage: test

resources:
Resources:
Expand All @@ -33,7 +33,7 @@ resources:

functions:
getKindOfAlgorithemCount:
handler: src/handler.getAlgorithemCountAtAll
handler: src/handler.getStatusList
events:
- http:
path: post/count
Expand All @@ -54,21 +54,21 @@ functions:
method: get
cors: true
createAlgorithem:
handler: src/handler.wirteAlogorithem
handler: src/handler.postAlgorithem
events:
- http:
path: post/create
method: post
cors: true
changeStatusAlgorithem:
handler: src/handler.setAlogorithemStatus
handler: src/handler.setAlgorithemStatus
events:
- http:
path: post/{id}/setStatus
method: post
cors: true
modifyAlgorithem:
handler: src/handler.modifyAlogirithemContent
handler: src/handler.modifyAlgorithem
events:
- http:
path: post/{id}/modify
Expand All @@ -88,6 +88,20 @@ functions:
path: post/{id}/delete
method: delete
cors: true
getAlgorithemRules:
handler: src/handler.getAlgorithemRules
events:
- http:
path: post/rule
method: get
cors: true
getAlgorithemRulesForWeb:
handler: src/handler.getAlgorithemRulesForWeb
events:
- http:
path: post/rule/web
method: get
cors: true
auth:
handler: src/handler.authAdmin
events:
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { APIGatewayEvent } from "aws-lambda";

export type certifiedEvent = APIGatewayEvent & { state?: { isAdmin: boolean } };
export type CertifiedEvent = APIGatewayEvent & { state?: { isAdmin: boolean } };
Loading

0 comments on commit e09c622

Please sign in to comment.