mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-05 03:02:56 +00:00
dev day #99
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
%%{init: {"theme":"forest","flowchart":{"curve":"linear"},"themeCSS":".edgePath path { stroke-dasharray: 6 4; animation: dash 16s linear infinite; } @keyframes dash { to { stroke-dashoffset: -1000; } }" }}%%
|
||||
%%{init: {"theme":"forest","securityLevel":"loose","flowchart":{"curve":"linear","useMaxWidth":true,"nodeSpacing":35,"rankSpacing":45},"themeCSS":".edgePath path { stroke-opacity:.6 } .cluster rect { rx:8; ry:8 }" }}%%
|
||||
flowchart TB
|
||||
|
||||
classDef group fill:#eef7ff,stroke:#2b6cb0,color:#0b3a60;
|
||||
@@ -16,7 +16,7 @@ client ==>|HTTP| api
|
||||
client ==>|HTTP| rootgrp
|
||||
|
||||
subgraph PUBLIC["Public endpoints"]
|
||||
direction TB
|
||||
direction LR
|
||||
p_health["GET /health"]:::pub
|
||||
p_csrf["GET /csrf-token"]:::pub
|
||||
p_image_proxy["GET /proxy/image"]:::pub
|
||||
@@ -54,7 +54,7 @@ subgraph PUBLIC["Public endpoints"]
|
||||
end
|
||||
|
||||
subgraph PROTECTED["Protected (JWTAuth + CSRF for state)"]
|
||||
direction TB
|
||||
direction LR
|
||||
prot_sweep["POST /sweepstakes/:id/enter | POST /sweepstakes/:id/played | GET /sweepstakes/my-winnings"]:::route
|
||||
prot_eng["Engagement: GET /leaderboard, /profile, /achievements, /transactions | POST /checkin, /article-read, /redeem | PATCH /profile, /avatar"]:::route
|
||||
prot_comments["Comments: POST /comments | PUT/DELETE /comments/:id | react/unreact | unban-request | report"]:::route
|
||||
@@ -68,7 +68,7 @@ subgraph PROTECTED["Protected (JWTAuth + CSRF for state)"]
|
||||
end
|
||||
|
||||
subgraph ADMIN["Admin groups (JWT + Role: admin)"]
|
||||
direction TB
|
||||
direction LR
|
||||
ad_errors["/admin/errors: list, get, external proxies"]:::admin
|
||||
ad_comments["/admin/comments: list, status, bans, unban requests"]:::admin
|
||||
ad_comp_aliases["/admin/competition-aliases: CRUD + reorder"]:::admin
|
||||
@@ -98,7 +98,7 @@ subgraph ADMIN["Admin groups (JWT + Role: admin)"]
|
||||
end
|
||||
|
||||
subgraph ROOT["Root endpoints"]
|
||||
direction TB
|
||||
direction LR
|
||||
r_robots["GET /robots.txt"]:::root
|
||||
r_sitemap["GET /sitemap.xml"]:::root
|
||||
r_short["GET /s/:code"]:::root
|
||||
|
||||
Reference in New Issue
Block a user