2014-04-01 02:12:34 +02:00
|
|
|
unit AppControllerU;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses MVCFramework,
|
|
|
|
MVCFramework.Logger,
|
|
|
|
Web.HTTPApp;
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
[MVCPath('/')]
|
|
|
|
TApp1MainController = class(TMVCController)
|
|
|
|
public
|
|
|
|
[MVCPath('/')]
|
|
|
|
[MVCHTTPMethod([httpGET])]
|
2016-11-27 23:17:20 +01:00
|
|
|
procedure Index;
|
2014-04-01 02:12:34 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
uses
|
|
|
|
System.SysUtils, MVCFramework.Commons;
|
|
|
|
|
|
|
|
{ TApp1MainController }
|
|
|
|
|
2016-11-27 23:17:20 +01:00
|
|
|
procedure TApp1MainController.Index;
|
2014-04-01 02:12:34 +02:00
|
|
|
begin
|
2016-01-01 23:00:22 +01:00
|
|
|
ContentType := TMVCMediaType.TEXT_PLAIN;
|
2014-04-01 02:12:34 +02:00
|
|
|
Render(StringOfChar('*', 1024));
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|