Extend API controllers from OCSController
Both LanguageController
and ConfigController
should extend OCSController
as it's the correct class for API Controllers.
https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-openapi.html