question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add routePrefix documentation (update host.json sample in wiki)

See original GitHub issue

Thank you for 0.7 new release with custom routes ✨

One of the new features is :

allow for the default “api” route prefix to be customized or completely removed via host.json

Please update host.json sample in wiki with :

{
    "http": {
        // The default value is "api".  An empty string will completely remove the prefix.
        "routePrefix": "api"
    }
}

Sources :

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mathewccommented, Oct 26, 2016

I’ve created a wiki page here, and I also updated the host.json wiki page.

1reaction
mathewccommented, Oct 26, 2016

I’m planning on writing up some detailed instructions for http in general in our wiki. I’ll address this as well when I do that.

There are some other host level knobs that we’ve added recently that aren’t included in our existing host.json/function.json doc. I’ll work to address those as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

host.json reference for Azure Functions 2.x and later
Reference documentation for the Azure Functions host.json file with the v2 runtime.
Read more >
Routerprefix not working in Azure Functions
Specifying the routePrefix in the host.json file the way you did in your example should be enough. I tested this locally and it...
Read more >
Tavenem.Wiki.Blazor.Server 0.5.5-preview
The client package should be installed in your Blazor client app, and the server library can optionally be installed in your host app....
Read more >
Lesson 3 - Create a RESTful API
Update the RoutePrefix attribute to wikipedia-management. using Relativity. ... In the sample URL, <host> refers to the Relativity instance's base URL.
Read more >
RESTful APIs and Swagger (OpenAPI) in Azure Functions
By default, Azure Functions uses api as its route prefix. ... If we want to customize the prefix, we can edit host.json in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found