mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
FIX in Sample
This commit is contained in:
parent
7ca59a3b88
commit
d9b1531aa7
@ -103,7 +103,7 @@ end;
|
||||
|
||||
procedure TSampleController.Index(Ctx: TWebContext);
|
||||
begin
|
||||
Redirect('/customers');
|
||||
Redirect('/index.html');
|
||||
end;
|
||||
|
||||
procedure TSampleController.NewCustomer(Ctx: TWebContext);
|
||||
|
@ -5,6 +5,7 @@ program serversideviews;
|
||||
uses
|
||||
System.SysUtils,
|
||||
Winapi.Windows,
|
||||
Winapi.ShellAPI,
|
||||
IdHTTPWebBrokerBridge,
|
||||
Web.WebReq,
|
||||
Web.WebBroker,
|
||||
@ -27,6 +28,8 @@ begin
|
||||
try
|
||||
LServer.DefaultPort := APort;
|
||||
LServer.Active := True;
|
||||
ShellExecute(0, PChar('open'), PChar('http://localhost:8080/index.html'),
|
||||
nil, nil, SW_SHOWMAXIMIZED);
|
||||
Writeln('Press ESC to stop the server');
|
||||
LHandle := GetStdHandle(STD_INPUT_HANDLE);
|
||||
while True do
|
||||
|
@ -195,7 +195,6 @@
|
||||
</DelphiCompile>
|
||||
<DCCReference Include="WebModuleU.pas">
|
||||
<Form>WebModule1</Form>
|
||||
<FormType>dfm</FormType>
|
||||
<DesignClass>TWebModule</DesignClass>
|
||||
</DCCReference>
|
||||
<DCCReference Include="SampleControllerU.pas"/>
|
||||
|
Loading…
Reference in New Issue
Block a user