diff options
Diffstat (limited to 'WebApplication1')
-rw-r--r-- | WebApplication1/Controllers/ValuesController.cs | 45 | ||||
-rw-r--r-- | WebApplication1/Program.cs | 24 | ||||
-rw-r--r-- | WebApplication1/Properties/launchSettings.json | 30 | ||||
-rw-r--r-- | WebApplication1/Startup.cs | 47 | ||||
-rw-r--r-- | WebApplication1/WebApplication1.csproj | 15 | ||||
-rw-r--r-- | WebApplication1/appsettings.Development.json | 9 | ||||
-rw-r--r-- | WebApplication1/appsettings.json | 8 |
7 files changed, 0 insertions, 178 deletions
diff --git a/WebApplication1/Controllers/ValuesController.cs b/WebApplication1/Controllers/ValuesController.cs deleted file mode 100644 index ac835f3..0000000 --- a/WebApplication1/Controllers/ValuesController.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; - -namespace WebApplication1.Controllers -{ - [Route("api/[controller]")] - [ApiController] - public class ValuesController : ControllerBase - { - // GET api/values - [HttpGet] - public ActionResult<IEnumerable<string>> Get() - { - return new string[] { "value1", "value2" }; - } - - // GET api/values/5 - [HttpGet("{id}")] - public ActionResult<string> Get(int id) - { - return "value"; - } - - // POST api/values - [HttpPost] - public void Post([FromBody] string value) - { - } - - // PUT api/values/5 - [HttpPut("{id}")] - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - [HttpDelete("{id}")] - public void Delete(int id) - { - } - } -} diff --git a/WebApplication1/Program.cs b/WebApplication1/Program.cs deleted file mode 100644 index 8b7d1da..0000000 --- a/WebApplication1/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; - -namespace WebApplication1 -{ - public class Program - { - public static void Main(string[] args) - { - CreateWebHostBuilder(args).Build().Run(); - } - - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args) - .UseStartup<Startup>(); - } -} diff --git a/WebApplication1/Properties/launchSettings.json b/WebApplication1/Properties/launchSettings.json deleted file mode 100644 index 5d1f813..0000000 --- a/WebApplication1/Properties/launchSettings.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:1650", - "sslPort": 44303 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "api/values", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "WebApplication1": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "api/values", - "applicationUrl": "https://localhost:5001;http://localhost:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -}
\ No newline at end of file diff --git a/WebApplication1/Startup.cs b/WebApplication1/Startup.cs deleted file mode 100644 index 9be97f9..0000000 --- a/WebApplication1/Startup.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; - -namespace WebApplication1 -{ - public class Startup - { - public Startup(IConfiguration configuration) - { - Configuration = configuration; - } - - public IConfiguration Configuration { get; } - - // This method gets called by the runtime. Use this method to add services to the container. - public void ConfigureServices(IServiceCollection services) - { - services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) - { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - else - { - app.UseHsts(); - } - - app.UseHttpsRedirection(); - app.UseMvc(); - } - } -} diff --git a/WebApplication1/WebApplication1.csproj b/WebApplication1/WebApplication1.csproj deleted file mode 100644 index 710a1eb..0000000 --- a/WebApplication1/WebApplication1.csproj +++ /dev/null @@ -1,15 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk.Web"> - - <PropertyGroup> - <TargetFramework>netcoreapp2.1</TargetFramework> - </PropertyGroup> - - <ItemGroup> - <Folder Include="wwwroot\" /> - </ItemGroup> - - <ItemGroup> - <PackageReference Include="Microsoft.AspNetCore.App" /> - </ItemGroup> - -</Project> diff --git a/WebApplication1/appsettings.Development.json b/WebApplication1/appsettings.Development.json deleted file mode 100644 index e203e94..0000000 --- a/WebApplication1/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/WebApplication1/appsettings.json b/WebApplication1/appsettings.json deleted file mode 100644 index def9159..0000000 --- a/WebApplication1/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning" - } - }, - "AllowedHosts": "*" -} |