123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- {
- This file is part of the Free Component Library
- Copyright (c) 2024 by Michael Van Canneyt [email protected]
- JSON-RPC dispatcher for webclient.
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- unit module.rpc;
- {$mode objfpc}{$H+}
- interface
- uses
- Classes, SysUtils, HTTPDefs, fpHTTP, fpWeb, fpjsonrpc, webjsonrpc;
- type
- { TrpcModule }
- TrpcModule = class(TJSONRPCModule)
- private
- public
- end;
- var
- rpcModule: TrpcModule;
- implementation
- {$R *.lfm}
- initialization
- RegisterHTTPModule('RPC', TrpcModule);
- end.
|