✨ Check client ip
This commit is contained in:
parent
00c52eba68
commit
a6212335e7
7
pkg/internal/server/api/check_ip.go
Normal file
7
pkg/internal/server/api/check_ip.go
Normal file
@ -0,0 +1,7 @@
|
||||
package api
|
||||
|
||||
import "github.com/gofiber/fiber/v2"
|
||||
|
||||
func getClientIP(c *fiber.Ctx) error {
|
||||
return c.SendString(c.IP())
|
||||
}
|
@ -12,6 +12,7 @@ func MapAPIs(app *fiber.App) {
|
||||
wellKnown.Get("/", func(c *fiber.Ctx) error {
|
||||
return c.SendStatus(fiber.StatusOK)
|
||||
})
|
||||
wellKnown.Get("/check-ip", getClientIP)
|
||||
wellKnown.Get("/directory/services", listExistsService)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user