Let's create the Apache module. We'll create a fake management system with a list of users. There is one resource accessible with two HTTP verbs: GET and POST:
- Navigate to File | New | Other.
- Navigate to Delphi Projects | WebBroker | Web Server Application.
- In the resultant modal dialog, select Linux and click Next.
- In the next modal dialog, select the Apache dynamic-link module and click Next.
- In the combo box, select Apache Version 2.4 and write peoplemanager_module as the module name.
- Click Finish.
- Save the project using the following filenames:
- mod_peoplemanager.dproj
- WebModuleU.pas
- Add a new unit to the project, save it as SampleControllerU.pas, and write the following code:
unit SampleControllerU;interfaceuses ...