> For the complete documentation index, see [llms.txt](https://docs.scandipwa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers.md).

# Accessing Magento 2 Controllers

Accessing Magento 2 native controllers is a crucial skill for payment methods, social login, and many other integrations, for example using Axios you can use controllers for forms submitting instead of creating additional GraphQl and resolver.

You will learn how to:

* [Create Magento 2 module ](https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers/step-1-creating-magento-2-module)
* [Create Magento Frontend Route and Basic Controller](https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers/step-2-create-magento-2-frontend-route-and-basic-controller)
* [Bypass ScandiPWA frontend and drop into Magento controller](https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers/step-3-accessing-magento-2-controller-bypassing-scandipwa-frontend)
* [Create ScandiPWA Extension with additional dependencies ](https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers/step-4-creating-scandipwa-extension-with-additional-dependencies)
* [Create Plugin and use Axios](https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers/step-5-creating-plugin-and-axios-request)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scandipwa.com/tutorials/accessing-magento-2-controllers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
