diff options
Diffstat (limited to 'API')
| -rw-r--r-- | API/API.code-workspace | 19 | ||||
| -rw-r--r-- | API/API.csproj | 4 | ||||
| -rw-r--r-- | API/Controllers/WeatherForecastController.cs | 3 |
3 files changed, 24 insertions, 2 deletions
diff --git a/API/API.code-workspace b/API/API.code-workspace new file mode 100644 index 0000000..875e3c8 --- /dev/null +++ b/API/API.code-workspace @@ -0,0 +1,19 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "files.exclude": { + "**/.vscode": true, + "**/bin": true, + "**/obj": true, + ".gitignore" : true, + "**/README.md" : true, + "**/LICENSE" : true, + "**/Properties" : true, + "**/*.code-workspace" : true + } + } +}
\ No newline at end of file diff --git a/API/API.csproj b/API/API.csproj index dcc653c..5c04910 100644 --- a/API/API.csproj +++ b/API/API.csproj @@ -11,4 +11,8 @@ <PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
</ItemGroup>
+ <ItemGroup> + <ProjectReference Include="..\Models\Models.csproj" /> + </ItemGroup>
+
</Project>
diff --git a/API/Controllers/WeatherForecastController.cs b/API/Controllers/WeatherForecastController.cs index 2e4b29d..a90538d 100644 --- a/API/Controllers/WeatherForecastController.cs +++ b/API/Controllers/WeatherForecastController.cs @@ -10,13 +10,12 @@ namespace API.Controllers [Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
+ private readonly ILogger<WeatherForecastController> _logger;
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
- private readonly ILogger<WeatherForecastController> _logger;
-
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
|
