this seems as a big duplication of /facts, could you extract it to some method which would accept a block with code to execute when authenticated?

result would look similar to this
```ruby
post "/facts/" do
  authenticated do |request|
    Proxy::Chefproxy::Facts.post_facts(request.env["rack.input"].read)
  end
end
```