You could delete the web app and create a function app with the same, but this would warrant some downtime. Also, if the name is not unique, it could be taken by others in the time between deleting and recreating, though very unlikely.
Another option would be to redirect all requests to your function app by return HTTP 308 responses for all paths.
Ideally, while the default endpoints are useful to getting started, you should opt for using a Custom Domain and/or a gateway like Azure APIM or Application Gateway.