I have a controller which is eventually going to be set up for POSTs and GETs, but the weird thing is I can only access it through
localhost/index.php?p=actions/twoFA/get where twoFA is my plugin handle and get is an action method in my controller. How can I make it so that it behaves like all the examples online where I could go to
localhost/actions/twoFA/get? What's happening? Also, my
actionTrigger is set to
actions and I have not set up any site routes in my plugin.
UPDATE: I have decided to make this work a little differently, and I therefore do not need any help.