What if you had a service providing the random number, would it be possible to call that service easily in getServerSideProps? And the same service in the controller.
In this way you could handle both API calls and loading data for pages by using the same services.
What if you had a service providing the random number, would it be possible to call that service easily in getServerSideProps? And the same service in the controller.
In this way you could handle both API calls and loading data for pages by using the same services.