v5oo the entry point for requests is the index.php file included by default in the public folder of flarum installations. That file boots up the flarum application and extensions, (based largely on laravel, sends the request through a Middleware pipe to a controller, which returns a response which is returned to the user. Requests to all 3 apps (forum, admin, and api) are handled this way.