mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
fix random resource.
This commit is contained in:
@@ -252,7 +252,8 @@ func handleUpdateResource(c fiber.Ctx) error {
|
||||
}
|
||||
|
||||
func handleGetRandomResource(c fiber.Ctx) error {
|
||||
resource, err := service.RandomResource()
|
||||
host := c.Hostname()
|
||||
resource, err := service.RandomResource(host)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user