mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 00:05:53 +01:00
00d5a9699a
- Now the JSON-RPC executor provides methods to handle HTTP headers for JSON-RPC requests and notifications. - FIX for [issue #141](https://github.com/danieleteti/delphimvcframework/issues/141) - `TDataSetHolder` is a new render that is able to render a dataset with a set of custom metadata (eg `count`,`page` etc). Check [issue #137](https://github.com/danieleteti/delphimvcframework/issues/137)
53 lines
1.4 KiB
ObjectPascal
53 lines
1.4 KiB
ObjectPascal
library mod_dmvc;
|
|
|
|
uses
|
|
System.Threading,
|
|
Winapi.ActiveX,
|
|
System.Win.ComObj,
|
|
Web.WebBroker,
|
|
Web.ApacheApp,
|
|
Web.HTTPD24Impl,
|
|
MVCFramework.Logger,
|
|
Winapi.Windows,
|
|
System.Classes,
|
|
MainWebModuleUnit in '..\winecellarserver\MainWebModuleUnit.pas' {wm: TWebModule},
|
|
MainDataModuleUnit in '..\winecellarserver\MainDataModuleUnit.pas' {WineCellarDataModule: TDataModule},
|
|
WineCellarAppControllerU in '..\winecellarserver\WineCellarAppControllerU.pas',
|
|
WinesBO in '..\winecellarserver\WinesBO.pas';
|
|
|
|
{$R *.res}
|
|
// httpd.conf entries:
|
|
//
|
|
(*
|
|
LoadModule dmvc_module modules/mod_dmvc.dll
|
|
|
|
<Location /xyz>
|
|
SetHandler mod_dmvc-handler
|
|
</Location>
|
|
*)
|
|
//
|
|
// These entries assume that the output directory for this project is the apache/modules directory.
|
|
//
|
|
// httpd.conf entries should be different if the project is changed in these ways:
|
|
// 1. The TApacheModuleData variable name is changed
|
|
// 2. The project is renamed.
|
|
// 3. The output directory is not the apache/modules directory
|
|
//
|
|
|
|
// Declare exported variable so that Apache can access this module.
|
|
var
|
|
GModuleData: TApacheModuleData;
|
|
|
|
exports
|
|
GModuleData name 'dmvc_module';
|
|
|
|
begin
|
|
CoInitFlags := COINIT_MULTITHREADED;
|
|
Web.ApacheApp.InitApplication(@GModuleData);
|
|
Application.Initialize;
|
|
Application.WebModuleClass := WebModuleClass;
|
|
Application.Run;
|
|
|
|
|
|
end.
|