2020-02-11 15:45:35 +01:00
|
|
|
unit OtherControllerU;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
MVCFramework, MVCFramework.Commons;
|
|
|
|
|
|
|
|
type
|
|
|
|
TOtherController = class(TMVCController)
|
|
|
|
public
|
|
|
|
[MVCPath]
|
|
|
|
[MVCHTTPMethods([httpGET])]
|
2024-04-24 17:03:05 +02:00
|
|
|
function GetSomethings: String;
|
2020-02-11 15:45:35 +01:00
|
|
|
[MVCPath('/else')]
|
|
|
|
[MVCHTTPMethods([httpGET])]
|
2024-04-24 17:03:05 +02:00
|
|
|
function GetSomethingElse: String;
|
2020-02-11 15:45:35 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
{ TCustomController }
|
|
|
|
|
2024-04-24 17:03:05 +02:00
|
|
|
function TOtherController.GetSomethingElse: String;
|
2020-02-11 15:45:35 +01:00
|
|
|
begin
|
2024-04-24 17:03:05 +02:00
|
|
|
Result := 'Hello There, it''s "GetSomethingElse" here';
|
2020-02-11 15:45:35 +01:00
|
|
|
end;
|
|
|
|
|
2024-04-24 17:03:05 +02:00
|
|
|
function TOtherController.GetSomethings: String;
|
2020-02-11 15:45:35 +01:00
|
|
|
begin
|
2024-04-24 17:03:05 +02:00
|
|
|
Result := 'Hello There, it''s "GetSomethings" here';
|
2020-02-11 15:45:35 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|