delphimvcframework/samples/middleware/AppControllerU.pas

33 lines
500 B
ObjectPascal
Raw Normal View History

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;
end;
implementation
uses
System.SysUtils, MVCFramework.Commons;
{ TApp1MainController }
2016-11-27 23:17:20 +01:00
procedure TApp1MainController.Index;
begin
ContentType := TMVCMediaType.TEXT_PLAIN;
Render(StringOfChar('*', 1024));
end;
end.