Node js server with NextCloud

I have a sperate Node js server which access my nextcloud using webdav. Is there any way to migrate my entire Node js server to NextCloud as an App or migrate my APIs from Node js to NextCloud??