Added template rendering when not using annotations

When generating a controller, the controller didn't had a body. This means it'll cause a failure when using it. This PR returns something, which means it returns an array when using annotations or renders the template when using another format.