From 607ea3ec88fb6064f9e368fdaa442b01edd1189d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Thu, 16 Nov 2023 13:39:29 +0500 Subject: [PATCH 1/4] =?UTF-8?q?=D0=A3=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BC=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D0=B0=D1=8F=20=D0=B4=D0=BB=D0=B8=D0=BD=D0=B0=20Com?= =?UTF-8?q?panyTypeCaption=20=D1=83=20CompanyDto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudApp/Data/CompanyDto.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsbCloudApp/Data/CompanyDto.cs b/AsbCloudApp/Data/CompanyDto.cs index 9ca4bcc4..6085f0e7 100644 --- a/AsbCloudApp/Data/CompanyDto.cs +++ b/AsbCloudApp/Data/CompanyDto.cs @@ -28,7 +28,7 @@ namespace AsbCloudApp.Data /// /// Название типа компании /// - [StringLength(30, MinimumLength = 1, ErrorMessage = "Допустимое имя типа компании от 1 до 30 символов")] + [StringLength(50, MinimumLength = 1, ErrorMessage = "Допустимое имя типа компании от 1 до 50 символов")] public string? CompanyTypeCaption { get; set; } = null!; } From 80bf805554091aeecc3deac42fea7476bf609885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=A4=D1=80=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= Date: Thu, 16 Nov 2023 17:44:41 +0500 Subject: [PATCH 2/4] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20AsbCloudApp/Data/CompanyDto.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudApp/Data/CompanyDto.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsbCloudApp/Data/CompanyDto.cs b/AsbCloudApp/Data/CompanyDto.cs index 6085f0e7..7599aa5a 100644 --- a/AsbCloudApp/Data/CompanyDto.cs +++ b/AsbCloudApp/Data/CompanyDto.cs @@ -28,7 +28,7 @@ namespace AsbCloudApp.Data /// /// Название типа компании /// - [StringLength(50, MinimumLength = 1, ErrorMessage = "Допустимое имя типа компании от 1 до 50 символов")] + [StringLength(255, MinimumLength = 1, ErrorMessage = "Допустимое имя типа компании от 1 до 255 символов")] public string? CompanyTypeCaption { get; set; } = null!; } From 93765544fe3d3d9627ccc6dd7d3f3447ff8d33ea Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Fri, 17 Nov 2023 12:09:16 +0500 Subject: [PATCH 3/4] Delete unused files --- AsbCloudWebApi/AsbCloudWebApi.csproj | 3 --- AsbCloudWebApi/wwwroot/index.html | 1 - 2 files changed, 4 deletions(-) delete mode 100644 AsbCloudWebApi/wwwroot/index.html diff --git a/AsbCloudWebApi/AsbCloudWebApi.csproj b/AsbCloudWebApi/AsbCloudWebApi.csproj index 0d8f4806..8c9b17b8 100644 --- a/AsbCloudWebApi/AsbCloudWebApi.csproj +++ b/AsbCloudWebApi/AsbCloudWebApi.csproj @@ -25,9 +25,6 @@ - - PreserveNewest - PreserveNewest diff --git a/AsbCloudWebApi/wwwroot/index.html b/AsbCloudWebApi/wwwroot/index.html deleted file mode 100644 index 4a8d1fca..00000000 --- a/AsbCloudWebApi/wwwroot/index.html +++ /dev/null @@ -1 +0,0 @@ -DDrill
\ No newline at end of file From afccdafebcf34f06321cb9a5b1f766245de78934 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Mon, 20 Nov 2023 12:00:52 +0500 Subject: [PATCH 4/4] remove static file serving for the current request path --- AsbCloudWebApi/Startup.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/AsbCloudWebApi/Startup.cs b/AsbCloudWebApi/Startup.cs index c7138dba..c39dc43e 100644 --- a/AsbCloudWebApi/Startup.cs +++ b/AsbCloudWebApi/Startup.cs @@ -132,17 +132,6 @@ namespace AsbCloudWebApi app.UseDeveloperExceptionPage(); } - app.UseDefaultFiles(); - app.UseStaticFiles( - new StaticFileOptions - { - OnPrepareResponse = ctx => - { - ctx.Context.Response.Headers.CacheControl = "public,max-age=2592000"; - ctx.Context.Response.Headers.Expires = System.DateTime.UtcNow.AddDays(10).ToString("R", System.Globalization.CultureInfo.InvariantCulture); - } - } - ); app.UseCors("ClientPermission"); app.UseRouting();