mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-18 01:05:54 +01:00
33 lines
535 B
ObjectPascal
33 lines
535 B
ObjectPascal
|
unit AppControllerU;
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses MVCFramework,
|
||
|
MVCFramework.Logger,
|
||
|
Web.HTTPApp;
|
||
|
|
||
|
type
|
||
|
|
||
|
[MVCPath('/')]
|
||
|
TApp1MainController = class(TMVCController)
|
||
|
public
|
||
|
[MVCPath('/')]
|
||
|
[MVCHTTPMethod([httpGET])]
|
||
|
procedure Index(ctx: TWebContext);
|
||
|
end;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
uses
|
||
|
System.SysUtils, MVCFramework.Commons;
|
||
|
|
||
|
{ TApp1MainController }
|
||
|
|
||
|
procedure TApp1MainController.Index(ctx: TWebContext);
|
||
|
begin
|
||
|
ContentType := TMVCMimeType.TEXT_PLAIN;
|
||
|
Render(StringOfChar('*', 1024));
|
||
|
end;
|
||
|
|
||
|
end.
|