Skip to content

Commit

Permalink
updateS?
Browse files Browse the repository at this point in the history
  • Loading branch information
1kevgriff committed May 5, 2020
1 parent 8df2997 commit 881aaa8
Show file tree
Hide file tree
Showing 7 changed files with 6,197 additions and 224 deletions.
24 changes: 24 additions & 0 deletions backend/Controllers/UserController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace backend.Controllers
{
[Route("api/user")]
[ApiController]
[Authorize]
public class UserController : ControllerBase
{
public async Task<IActionResult> Get()
{
// TODO: write code
return Ok();
}
}
}


3 changes: 0 additions & 3 deletions backend/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ namespace backend
{
public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddSpaStaticFiles(options => { options.RootPath = "wwwroot"; });
services.AddControllers();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
Expand Down
4 changes: 3 additions & 1 deletion backend/backend.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion backend/obj/backend.csproj.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"dgSpecHash": "ukE9mLKhFPFLgQWh0v72opUmLRSIzy2mbpzojwjYxNscJL6B5m0LSwK/+HrM9z9obTP5Sb+0pelePPXN5wCi2w==",
"dgSpecHash": "hf/RsJSmPDcLiTz3ZWKK43zgwtAcbv+VpGbw9GIr4FIvVIJAFzsHMySieAu/QzPN03JEAIJXuECSRBBY+ogaIw==",
"success": true
}
8 changes: 8 additions & 0 deletions backend/obj/backend.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
"Microsoft.AspNetCore.SpaServices.Extensions": {
"target": "Package",
"version": "[3.1.1, )"
},
"Microsoft.Extensions.Logging.Debug": {
"target": "Package",
"version": "[3.1.0, )"
},
"Microsoft.VisualStudio.Web.CodeGeneration.Design": {
"target": "Package",
"version": "[3.1.0, )"
}
},
"imports": [
Expand Down
3 changes: 3 additions & 0 deletions backend/obj/backend.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\kevin\.nuget\packages\microsoft.codeanalysis.analyzers\2.9.4</PkgMicrosoft_CodeAnalysis_Analyzers>
</PropertyGroup>
</Project>
Loading

0 comments on commit 881aaa8

Please sign in to comment.