Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

Custom routes

To change the domain part of the URL (http://<YourAppName>.azurewebsites.net), you can configure a custom domain for your Function App, which we will describe in more detail in Chapter 10, Securing Your Application. This change will apply to all the functions defined under the Function App.

To customize the default api route prefix, you can add the following code to the host.json file (main project tree):

    {       "http": {            "routePrefix": "textapi-v1"       }    }

You can also specify an empty route prefix, such as "routePrefix": "", to simply remove the api prefix from the URL.

This change will apply to all the functions under the Function App.

To define a custom route for the part of the URL of a specific function (<FunctionName>), you can ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content