# app/controllers/avo/application_controller.rb
module Avo
  class ApplicationController < BaseApplicationController
    include Authentication
    delegate :new_session_path, to: :main_app

    # we are prepending the action to ensure it will be fired very early on in the request lifecycle
    prepend_before_action :require_authentication
  end
end
```

:::info
If you don't have the `app/controllers/avo/application_controller.rb` file present in your app, you can eject it using this command:

```bash
rails generate avo:eject --controller application_controller
```
:::

---