delphimvcframework/samples/master_details/Controllers.Base.pas

44 lines
644 B
ObjectPascal
Raw Normal View History

unit Controllers.Base;
interface
uses
MVCFramework, MVCFramework.Commons;
type
TBaseController = class abstract(TMVCController)
strict protected
public
destructor Destroy; override;
end;
[MVCPath('/private')]
TPrivateController = class(TBaseController)
public
[MVCPath('/articles')]
[MVCHTTPMethods([httpDELETE])]
procedure DeleteAllArticles;
end;
implementation
uses
System.SysUtils;
{ TBaseController }
destructor TBaseController.Destroy;
begin
inherited;
end;
{ TPrivateController }
procedure TPrivateController.DeleteAllArticles;
begin
// GetArticlesService.DeleteAllArticles();
end;
end.