mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
Fixing OTP api urls.
This commit is contained in:
parent
d3b985241b
commit
120ce7cd2c
2 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ from .schema import EncryptOTPRequest, DecryptOTPRequest
|
|||
bp = get_blueprint('OTP', '/api/otp')
|
||||
|
||||
|
||||
@bp.post(':encrypt_otp')
|
||||
@bp.post('/encrypt_otp')
|
||||
@validate_doc(
|
||||
summary='Encrypt a message with OTP',
|
||||
consumes=EncryptOTPRequest,
|
||||
|
|
@ -23,7 +23,7 @@ async def post_encrypt_otp(_: Request, data: dict):
|
|||
return response.json(data)
|
||||
|
||||
|
||||
@bp.post(':decrypt_otp')
|
||||
@bp.post('/decrypt_otp')
|
||||
@validate_doc(
|
||||
summary='Decrypt a message with OTP',
|
||||
consumes=DecryptOTPRequest,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue