Архивирование с быстрым подключением и серверный рендеринг для веб-клиента #15

This commit is contained in:
2026-05-04 15:19:53 +03:00
parent 83ce92afa4
commit 574d0d2e43
7 changed files with 374 additions and 18 deletions
+2
View File
@@ -42,6 +42,7 @@ start(_StartType, _StartArgs) ->
end,
ok = infra_mnesia:init_tables(),
ok = infra_mnesia:wait_for_tables(),
calendar_html_renderer:init_cache(),
start_http(), % Пользовательский API (8080)
start_admin_http(), % Административный API (8445)
application:ensure_all_started(prometheus),
@@ -72,6 +73,7 @@ start_http() ->
{"/v1/search", handler_search, []},
{"/v1/calendars", handler_calendars, []},
{"/v1/calendars/:id", handler_calendar_by_id, []},
{"/v1/calendars/:calendar_id/view", handler_calendar_view, []},
{"/v1/calendars/:calendar_id/events", handler_events, []},
{"/v1/events/:id", handler_event_by_id, []},
{"/v1/events/:id/occurrences", handler_event_occurrences, []},