mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 10:57:03 +08:00
feat(vscodex): add remote Codex collaboration module
This commit is contained in:
@@ -520,6 +520,65 @@ pub(super) fn classify_public_support_route(
|
||||
"aether:ccswitch_usage",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::POST
|
||||
&& matches!(normalized_path, "/api/vscodex/pair" | "/api/vscodex/pair/")
|
||||
{
|
||||
Some(classified(
|
||||
"public_support",
|
||||
"vscodex",
|
||||
"pairing_exchange",
|
||||
"public:vscodex",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::GET
|
||||
&& matches!(
|
||||
normalized_path,
|
||||
"/api/users/me/vscodex/devices" | "/api/users/me/vscodex/devices/"
|
||||
)
|
||||
{
|
||||
Some(classified(
|
||||
"public_support",
|
||||
"users_me",
|
||||
"vscodex_devices_list",
|
||||
"user:self",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::POST
|
||||
&& matches!(
|
||||
normalized_path,
|
||||
"/api/users/me/vscodex/pairings" | "/api/users/me/vscodex/pairings/"
|
||||
)
|
||||
{
|
||||
Some(classified(
|
||||
"public_support",
|
||||
"users_me",
|
||||
"vscodex_pairing_create",
|
||||
"user:self",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::POST
|
||||
&& matches!(
|
||||
normalized_path,
|
||||
"/api/users/me/vscodex/ws-tickets" | "/api/users/me/vscodex/ws-tickets/"
|
||||
)
|
||||
{
|
||||
Some(classified(
|
||||
"public_support",
|
||||
"users_me",
|
||||
"vscodex_ws_ticket_create",
|
||||
"user:self",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::DELETE
|
||||
&& has_single_segment_after_prefix(normalized_path, "/api/users/me/vscodex/devices/")
|
||||
{
|
||||
Some(classified(
|
||||
"public_support",
|
||||
"users_me",
|
||||
"vscodex_device_delete",
|
||||
"user:self",
|
||||
false,
|
||||
))
|
||||
} else if method == http::Method::GET
|
||||
&& matches!(
|
||||
normalized_path,
|
||||
|
||||
Reference in New Issue
Block a user