Н
Size: a a a
Н
AI
AI
j
AI
AI
AS
j
RS
Н
j
RS
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
BrookAction;
type
TMyAction = class(TBrookAction)
public
procedure Get; override;
end;
implementation
procedure TMyAction.Get;
begin
Write('Hello world!');
end;
initialization
TMyAction.Register('*');
end.
В коде GET - это метод запроса, write вывод на страницу вывода, Register('*') - роутинг urlj
Н
j
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
BrookAction;
type
TMyAction = class(TBrookAction)
public
procedure Get; override;
end;
implementation
procedure TMyAction.Get;
begin
Write('Hello world!');
end;
initialization
TMyAction.Register('*');
end.
В коде GET - это метод запроса, write вывод на страницу вывода, Register('*') - роутинг urlj
SB