It looks good :D Instead of using the file_get_contents, you could use something like require '';
and if you don't want to change any code, you could set the GET method before that $_GET['api'] = 'whatever'; require ''; and it will apply to the required file