delphimvcframework/samples/concurrency_speed_test/MainControllerU.pas
2019-05-19 14:06:28 +02:00

30 lines
438 B
ObjectPascal

unit MainControllerU;
interface
uses
MVCFramework, MVCFramework.Commons;
type
[MVCPath('/api')]
TMyController = class(TMVCController)
public
[MVCPath]
[MVCHTTPMethod([httpGET])]
procedure Index;
end;
implementation
uses
System.SysUtils, MVCFramework.Logger, System.StrUtils;
procedure TMyController.Index;
begin
//use Context property to access to the HTTP request and response
Render('X');
end;
end.