Home > OS >  How to put api in the folder of main site
How to put api in the folder of main site

Time:12-14

I have Flutter Website in IIS 10 and I want to put my API to the same domain in the "API" folder how do I do it?

CodePudding user response:

I don't understand the question. Can you explain?

CodePudding user response:

First, right click your website - Add web application

enter image description here

Second, name the alias as "API" ,choose the path as your api application folder. enter image description here

Then, visit "domain/API" will be your API content. Such as there is a "weatherforecast" route in my testAPI. enter image description here

  • Related