Skip to content

Commit e09c622

Browse files
authored
Merge pull request #52 from joog-lim/develop
feature version 2.1.6
2 parents e0c0fab + dd6505b commit e09c622

File tree

9 files changed

+732
-344
lines changed

9 files changed

+732
-344
lines changed

โ€Ž.env.exampleโ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
MONGO_URL=
2-
DISCORD_WEBHOOK=
3-
DISCORD_TEST_WEBHOOK=
2+
DISCORD_ACCEPTED_WEBHOOK=
3+
DISCORD_RECJECTED_WEBHOOK=
4+
DISCORD_REPORT_WEBHOOK=
45
DISCORD_MANAGEMENT_WEBHOOK=
6+
DISCORD_ABOUT_DELETE_WEBHOOK=
57
ADMIN_PASSWORD=
68
JWT_SECRET=

โ€Žpackage.jsonโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bamboo-api",
3-
"version": "2.0.0",
3+
"version": "2.1.6",
44
"repository": "https://github.com/Promotion-official/bamboo-server.git",
55
"author": "sunrabbit123 <qudwls185@naver.com>",
66
"license": "Apache-2.0",

โ€Žserverless.ymlโ€Ž

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ provider:
88
runtime: nodejs14.x
99
lambdaHashingVersion: 20201221
1010
region: ap-northeast-2
11-
stage: apiV2
11+
stage: test
1212

1313
resources:
1414
Resources:
@@ -33,7 +33,7 @@ resources:
3333

3434
functions:
3535
getKindOfAlgorithemCount:
36-
handler: src/handler.getAlgorithemCountAtAll
36+
handler: src/handler.getStatusList
3737
events:
3838
- http:
3939
path: post/count
@@ -54,21 +54,21 @@ functions:
5454
method: get
5555
cors: true
5656
createAlgorithem:
57-
handler: src/handler.wirteAlogorithem
57+
handler: src/handler.postAlgorithem
5858
events:
5959
- http:
6060
path: post/create
6161
method: post
6262
cors: true
6363
changeStatusAlgorithem:
64-
handler: src/handler.setAlogorithemStatus
64+
handler: src/handler.setAlgorithemStatus
6565
events:
6666
- http:
6767
path: post/{id}/setStatus
6868
method: post
6969
cors: true
7070
modifyAlgorithem:
71-
handler: src/handler.modifyAlogirithemContent
71+
handler: src/handler.modifyAlgorithem
7272
events:
7373
- http:
7474
path: post/{id}/modify
@@ -88,6 +88,20 @@ functions:
8888
path: post/{id}/delete
8989
method: delete
9090
cors: true
91+
getAlgorithemRules:
92+
handler: src/handler.getAlgorithemRules
93+
events:
94+
- http:
95+
path: post/rule
96+
method: get
97+
cors: true
98+
getAlgorithemRulesForWeb:
99+
handler: src/handler.getAlgorithemRulesForWeb
100+
events:
101+
- http:
102+
path: post/rule/web
103+
method: get
104+
cors: true
91105
auth:
92106
handler: src/handler.authAdmin
93107
events:

โ€Žsrc/DTO/middleware.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { APIGatewayEvent } from "aws-lambda";
22

3-
export type certifiedEvent = APIGatewayEvent & { state?: { isAdmin: boolean } };
3+
export type CertifiedEvent = APIGatewayEvent & { state?: { isAdmin: boolean } };

0 commit comments

Comments
ย (0)