mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
add RealUserMiddleware and update resource retrieval to track real users
This commit is contained in:
@@ -56,7 +56,7 @@ func handleGetResource(c fiber.Ctx) error {
|
||||
return model.NewRequestError("Invalid resource ID")
|
||||
}
|
||||
host := c.Hostname()
|
||||
resource, err := service.GetResource(uint(id), host)
|
||||
resource, err := service.GetResource(uint(id), host, c)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user