https://github.com/osquery/osquery logo
Title
k

Kun Nan

08/09/2021, 3:09 AM
hello, I have some questions about fleet source code, why /api/v1/fleet/results register the two same handlers? https://github.com/fleetdm/fleet/blob/main/server/service/handler.go#L539 https://github.com/fleetdm/fleet/blob/main/server/service/handler.go#L542
m

Mystery Incorporated

08/09/2021, 4:29 AM
The dev in me wants to say that declaring the route twice should have no effect.
z

zwass

08/09/2021, 11:32 PM
Nice catch. That should have had no additional effect. It probably ended up that way as a mistake during all the refactoring we did around API routes. Fixed in https://github.com/fleetdm/fleet/pull/1605.
👍 2