delphimvcframework/samples/spring4dintegration/Controller2U.pas

30 lines
474 B
ObjectPascal
Raw Normal View History

2017-10-16 22:57:27 +02:00
unit Controller2U;
interface
uses
MVCFramework, MVCFramework.Commons;
type
[MVCPath('/controller2')]
TMyController2 = class(TMVCController)
public
[MVCPath]
[MVCHTTPMethod([httpGET])]
procedure Index;
end;
implementation
uses
System.SysUtils, MVCFramework.Logger, System.StrUtils;
procedure TMyController2.Index;
begin
// use Context property to access to the HTTP request and response
Render('Hello DelphiMVCFramework World');
end;
end.