diff --git a/Backend/Controllers/LoginController.cs b/Backend/Controllers/LoginController.cs index d1a72a8..4b5362c 100644 --- a/Backend/Controllers/LoginController.cs +++ b/Backend/Controllers/LoginController.cs @@ -1,4 +1,5 @@ using Backend.Models; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; @@ -25,6 +26,17 @@ namespace Backend.Controllers this.backendRepository = backendRepository; } + #region 本機測試 + [AllowAnonymous] + [HttpGet("~/hello")] + [Consumes("application/x-www-form-urlencoded")] + public ActionResult hello() + { + return Ok(System.DateTime.Now.ToString() + " OK !"); + + } + #endregion + public IActionResult Index() { ViewBag.ProjectName = backendRepository.GetOneAsync("select system_key from variable where deleted = 0 and system_type = 'project_name';").Result; diff --git a/Backend/wwwroot/forgeDemo.html b/Backend/wwwroot/forgeDemo.html index 735f10a..0d241a3 100644 --- a/Backend/wwwroot/forgeDemo.html +++ b/Backend/wwwroot/forgeDemo.html @@ -280,10 +280,13 @@ // 0221 WSP ///launchViewer("dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dmVnb29nemNhdmNia2l0aHl2bHJzdnJjdGg2dHR3eWgtMjAyMzAyX2libXMvQmFucWlhbyUyMFRhaXBlaSUyME1haW4lMjBPZmZpY2UtQUxMXzAyMjEubndk") //2023-04-21 - launchViewer("dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dmVnb29nemNhdmNia2l0aHl2bHJzdnJjdGg2dHR3eWgtMjAyMzAyX2libXMvQmFucWlhbyUyMFRhaXBlaSUyME1haW4lMjBPZmZpY2UtQUxMXzA0MjEubndk"); + //launchViewer("dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dmVnb29nemNhdmNia2l0aHl2bHJzdnJjdGg2dHR3eWgtMjAyMzAyX2libXMvQmFucWlhbyUyMFRhaXBlaSUyME1haW4lMjBPZmZpY2UtQUxMXzA0MjEubndk"); //2023 - 0519 //launchViewer("dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLkxBVDNpNkI3UlVXdUY0YWNRanhjS1E_dmVyc2lvbj0x"); + //2023-05 三菱 dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6em80emd1eWFsaGpybDVvODF2YTM5cGtkZ3I4MndhbXEtbWl6dWJpc2hpLyVFMyU4MCU5MCVFNSU4RiVCMCVFNSU4QyU5NyVFNCVCOCVBRCVFOCU4RiVCMSVFNSVBNCVBNyVFNiVBOCU5MyVFMyU4MCU5MUFSQyVFOSU5QiU5OSVFNiVBOCVBMSVFNSVCQyU4RitNRVAlRTYlOEIlODYlRTclQjMlQkIlRTclQjUlQjFfJUU5JTlCJUJCJUU2JUEyJUFGJUU3JUI0JUIwJUU3JUFGJTgwJUU3JTg5JTg4Lm53ZA + launchViewer("dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6em80emd1eWFsaGpybDVvODF2YTM5cGtkZ3I4MndhbXEtbWl6dWJpc2hpLyVFMyU4MCU5MCVFNSU4RiVCMCVFNSU4QyU5NyVFNCVCOCVBRCVFOCU4RiVCMSVFNSVBNCVBNyVFNiVBOCU5MyVFMyU4MCU5MUFSQyVFOSU5QiU5OSVFNiVBOCVBMSVFNSVCQyU4RitNRVAlRTYlOEIlODYlRTclQjMlQkIlRTclQjUlQjFfJUU5JTlCJUJCJUU2JUEyJUFGJUU3JUI0JUIwJUU3JUFGJTgwJUU3JTg5JTg4Lm53ZA"); + }); function move1Floor() { setElevatorSpeed(0.2); diff --git a/Backend/wwwroot/upload.rar b/Backend/wwwroot/upload.rar deleted file mode 100644 index 23f5dae..0000000 Binary files a/Backend/wwwroot/upload.rar and /dev/null differ diff --git a/FrontendWebApi/ApiControllers/LoginController.cs b/FrontendWebApi/ApiControllers/LoginController.cs index 8042d9a..e5110f5 100644 --- a/FrontendWebApi/ApiControllers/LoginController.cs +++ b/FrontendWebApi/ApiControllers/LoginController.cs @@ -2,8 +2,10 @@ using FrontendWebApi.Models; using iTextSharp.text; using iTextSharp.text.pdf; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using NPOI.SS.UserModel; @@ -46,6 +48,16 @@ namespace FrontendWebApi.ApiControllers this.backendRepository = backendRepository; this.frontendRepository = frontendRepository; } + #region 本機測試 + [AllowAnonymous] + [HttpGet("~/hello")] + [Consumes("application/x-www-form-urlencoded")] + public ActionResult hello() + { + return Ok(System.DateTime.Now.ToString() + " OK !"); + + } + #endregion [HttpPost] [Route("api/Login")]