feat: check if a quest is unlocked before creating session

This commit is contained in:
wancat authored and Lin, Hung-Shin committed 2023-11-14 10:45:24 +08:00
1 parent c2dac8d385
commit 92181d960f
4 files changed
+32 -8

No files matched your search

+4
View File
@@ -79,6 +79,8 @@ paths:
properties:
message:
type: string
'403':
description: This quest is locked.
/sessions/active:
post:
@@ -108,6 +110,8 @@ paths:
$ref: '#/components/schemas/Session'
400:
description: 'Bad Request. The request is invalid or malformed.'
403:
description: This quest is locked.
500:
description: 'Internal Server Error.'