delphimvcframework/samples/angularjs/WebSiteControllerU.pas
daniele.teti 77f382b672
2013-11-14 10:08:02 +00:00

34 lines
485 B
ObjectPascal

unit WebSiteControllerU;
interface
uses MVCFramework,
MVCFramework.Logger,
Web.HTTPApp;
type
[MVCPath('/')]
TApp1MainController = class(TMVCController)
public
[MVCPath('/')]
[MVCHTTPMethod([httpGET])]
procedure Index(ctx: TWebContext);
end;
implementation
uses
Data.DBXJSON,
System.SysUtils;
{ TApp1MainController }
procedure TApp1MainController.Index(ctx: TWebContext);
begin
Redirect('/index.html');
end;
end.