delphimvcframework/samples/concurrency_speed_test/MainControllerU.pas

30 lines
438 B
ObjectPascal
Raw Normal View History

2019-05-19 14:06:12 +02:00
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.