mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add get ip endpoint
* rename handler * change rate limit
This commit is contained in:
1 parent
3b9ea9ea50
commit
b9a79eb435
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