delphimvcframework/samples/routing/WebModuleU.pas
Daniele Teti 14c4489f41 New Demos
2016-11-07 14:33:05 +01:00

34 lines
531 B
ObjectPascal

unit WebModuleU;
interface
uses
System.SysUtils, System.Classes,
Web.HTTPApp, MVCFramework;
type
TWebModule1 = class(TWebModule)
procedure WebModuleCreate(Sender: TObject);
private
DMVC: TMVCEngine;
end;
var
WebModuleClass: TComponentClass = TWebModule1;
implementation
{$R *.dfm}
uses RoutingSampleControllerU;
procedure TWebModule1.WebModuleCreate(Sender: TObject);
begin
DMVC := TMVCEngine.Create(self);
DMVC.AddController(TRoutingSampleController);
end;
end.