serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
267 stars 162 forks source link

Remove api #432

Closed nihitx closed 4 years ago

nihitx commented 4 years ago

This is a Feature Proposal

Description

Hello when creating an api endpoint for azure, I normally get/api/<path> and I was wondering if its possible to remove it via a new feature. I saw that it is doable in azure itself following this stack overflow page. https://stackoverflow.com/questions/47312531/how-to-remove-the-word-api-from-azure-functions-url

If its doable already it would be great if you could point me towards it.

camhart commented 4 years ago

I think you should be able to just add:

    "http": {
        "routePrefix": ""
    }

to the host.json file.