Having these routes hang off from the State didn't really make sense.
They're for the HTTP server so should be one-level up, they still have
access to the State because this is part of the PlaygroundServer
already. Doing this removes the need of passing the State into every
function, as it can be accessed internally.
Closes https://github.com/jdockerty/jsonnet-playground/issues/36
Having these routes hang off from the
State
didn't really make sense. They're for the HTTP server so should be one-level up, they still have access to theState
because this is part of thePlaygroundServer
already. Doing this removes the need of passing theState
into every function, as it can be accessed internally.