mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: add get ip endpoint
* rename handler * change rate limit
This commit is contained in:
1 parent
1d2ad733ed
commit
55b61dbcab
6 files changed
+22
-4
No files matched your search
@@ -519,6 +519,20 @@ paths:
|
||||
description: Invalid request body
|
||||
'401':
|
||||
description: Unauthorized
|
||||
/ip:
|
||||
get:
|
||||
summary: Get client IP address
|
||||
responses:
|
||||
'200':
|
||||
description: IP address
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
ip:
|
||||
type: string
|
||||
example: '127.0.0.1'
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
||||
Reference in new issue
Block a user