2014-04-01 02:12:34 +02:00
|
|
|
unit AppControllerU;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses MVCFramework,
|
2017-01-18 21:53:53 +01:00
|
|
|
MVCFramework.Commons,
|
2014-04-01 02:12:34 +02:00
|
|
|
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
|
2017-01-18 21:53:53 +01:00
|
|
|
System.SysUtils;
|
2014-04-01 02:12:34 +02:00
|
|
|
|
|
|
|
{ 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.
|