delphimvcframework/samples/activerecord_restful_crud/OtherControllerU.pas

34 lines
602 B
ObjectPascal
Raw Normal View History

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;
[MVCPath('/else')]
[MVCHTTPMethods([httpGET])]
2024-04-24 17:03:05 +02:00
function GetSomethingElse: String;
end;
implementation
{ TCustomController }
2024-04-24 17:03:05 +02:00
function TOtherController.GetSomethingElse: String;
begin
2024-04-24 17:03:05 +02:00
Result := 'Hello There, it''s "GetSomethingElse" here';
end;
2024-04-24 17:03:05 +02:00
function TOtherController.GetSomethings: String;
begin
2024-04-24 17:03:05 +02:00
Result := 'Hello There, it''s "GetSomethings" here';
end;
end.