Move Saxonite’s projects into a dedicated `Workspace` folder and align the solution with .NET 10 and the current Common workspace. Update encryption integration, test project structure and coverage, and repository guidance and upgrade notes. - Relocate application and library projects while retaining Git rename history. - Split tests into Admin, Online, and Shared projects; add representative behavioral and serialization tests. - Update Common integration, application version, and repository documentation. Application version: 1.3.0 Reviewed-on: #1 Co-authored-by: andy <andy@sarand.com>
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Saxonite.Web.Api.Controllers
|
|
{
|
|
//=======================================================================
|
|
[ApiController]
|
|
//[Route("[controller]")]
|
|
public class SecurityController : SwapiControllerBase
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SecurityController()
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Start session.
|
|
|
|
public class RequestData_StartSession
|
|
{
|
|
public String userCode { get; set; } = "";
|
|
}
|
|
public class ResponseData_StartSession : ApiResponse_Data
|
|
{
|
|
}
|
|
[HttpPost]
|
|
[Route("[controller]/StartSession")]
|
|
public ResponseData_StartSession StartSession_Get(RequestData_StartSession requestData)
|
|
{
|
|
ResponseData_StartSession responseData = new ResponseData_StartSession();
|
|
responseData.SetMessage("Security",$"User: {requestData.userCode}.");
|
|
|
|
return responseData;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|