-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathKanbanaApi.dpr
44 lines (38 loc) · 1.79 KB
/
KanbanaApi.dpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
program KanbanaApi;
{$APPTYPE CONSOLE}
{$R *.res}
uses
Horse,
Horse.Jhonson,
System.SysUtils,
Kanbana.Controllers.Boards in 'Src\Controllers\Kanbana.Controllers.Boards.pas',
Kanbana.Providers.Connection in 'Src\Providers\Kanbana.Providers.Connection.pas' {ProviderConnection: TDataModule},
Kanbana.Services.Boards in 'Src\Services\Kanbana.Services.Boards.pas' {ServiceBoards: TDataModule},
Kanbana.Controllers.Sections in 'Src\Controllers\Kanbana.Controllers.Sections.pas',
Kanbana.Services.Sections in 'Src\Services\Kanbana.Services.Sections.pas' {ServiceSections: TDataModule},
Kanbana.Controllers.Tasks in 'Src\Controllers\Kanbana.Controllers.Tasks.pas',
Kanbana.Services.Tasks in 'Src\Services\Kanbana.Services.Tasks.pas' {ServiceTasks: TDataModule},
Kanbana.Controllers.Login in 'Src\Controllers\Kanbana.Controllers.Login.pas',
Kanbana.Configs.Login in 'Src\Configs\Kanbana.Configs.Login.pas',
Kanbana.Providers.Authorization in 'Src\Providers\Kanbana.Providers.Authorization.pas',
Kanbana.Services.Users in 'Src\Services\Kanbana.Services.Users.pas' {ServiceUsers: TDataModule},
Kanbana.Providers.Encrypt in 'Src\Providers\Kanbana.Providers.Encrypt.pas',
Kanbana.Configs.Encrypt in 'Src\Configs\Kanbana.Configs.Encrypt.pas',
Kanbana.Controllers.Users in 'Src\Controllers\Kanbana.Controllers.Users.pas';
begin
ReportMemoryLeaksOnShutdown := True;
THorse.Use(Jhonson);
Kanbana.Controllers.Login.Registry;
Kanbana.Controllers.Users.Registry;
Kanbana.Controllers.Boards.Registry;
Kanbana.Controllers.Sections.Registry;
Kanbana.Controllers.Tasks.Registry;
THorse.Listen(9000,
procedure(Horse: THorse)
begin
Writeln('Server is runing on port ' + THorse.Port.ToString);
Write('Press return to stop...');
ReadLn;
THorse.StopListen;
end);
end.