File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 7
7
<TargetFramework >net9.0</TargetFramework >
8
8
<ImplicitUsings >enable</ImplicitUsings >
9
9
<Nullable >enable</Nullable >
10
- <IsAspireHost >true</IsAspireHost >
11
10
<UserSecretsId >2c343a00-3aab-423f-b3a2-2feabf216baa</UserSecretsId >
12
11
</PropertyGroup >
13
12
Original file line number Diff line number Diff line change 3
3
var db = builder . AddConnectionString ( "db" ) ;
4
4
5
5
builder . AddProject < Projects . WebApplication1 > ( "webapi" )
6
+ . WithUrlForEndpoint ( "http" , url =>
7
+ {
8
+ url . DisplayText = "Forecast API (HTTP)" ;
9
+ url . Url += "/weatherforecast" ;
10
+ } )
11
+ . WithUrlForEndpoint ( "https" , url =>
12
+ {
13
+ url . DisplayText = "Forecast API (HTTPS)" ;
14
+ url . Url += "/weatherforecast" ;
15
+ } )
6
16
. WithReference ( db ) ;
7
-
17
+ ;
8
18
9
19
builder . Build ( ) . Run ( ) ;
You can’t perform that action at this time.
0 commit comments