aboutsummaryrefslogtreecommitdiff
path: root/API
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-08 10:35:50 +0200
committertranstrike <transtrike@gmail.com>2020-12-08 10:35:50 +0200
commitfa0b0e992d363f41bdb8cda00ef59c0142c97246 (patch)
treedfa0ecaaf689670c75889de77320665ba7edead7 /API
parent648d50c387e7ee3976bd673594ed10901075475f (diff)
downloadDevHive-fa0b0e992d363f41bdb8cda00ef59c0142c97246.tar
DevHive-fa0b0e992d363f41bdb8cda00ef59c0142c97246.tar.gz
DevHive-fa0b0e992d363f41bdb8cda00ef59c0142c97246.zip
Added 3rd project and references
Diffstat (limited to 'API')
-rw-r--r--API/API.code-workspace19
-rw-r--r--API/API.csproj4
-rw-r--r--API/Controllers/WeatherForecastController.cs3
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;