Meta: Add files to repository

This commit is contained in:
Alec Murphy 2025-02-16 15:21:19 -05:00
parent 6d27d43268
commit 52cb92f587
120 changed files with 71820 additions and 0 deletions

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/api/v1/statuses", @slon_http_request_path(session))) {
@slon_api_v1_statuses_delete(session);
return;
}

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/api/v1/accounts", @slon_http_request_path(session))) {
@slon_api_v1_accounts_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/users/", @slon_http_request_path(session)) && String.EndsWith("json", @slon_http_request_header(session, "accept"))) {
@slon_activitypub_users_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/blocks", @slon_http_request_path(session))) {
@slon_api_v1_blocks_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/bookmarks", @slon_http_request_path(session))) {
@slon_api_v1_bookmarks_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/conversations", @slon_http_request_path(session))) {
@slon_api_v1_conversations_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/custom_emojis", @slon_http_request_path(session))) {
@slon_api_v1_custom_emojis_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/favourites", @slon_http_request_path(session))) {
@slon_api_v1_favourites_get(session);
return;
}

View file

@ -0,0 +1,9 @@
if (!StrICmp("/api/v1/filters", @slon_http_request_path(session))) {
@slon_api_v1_filters_get(session);
return;
}
if (!StrICmp("/api/v2/filters", @slon_http_request_path(session))) {
@slon_api_v2_filters_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/follow_requests", @slon_http_request_path(session))) {
@slon_api_v1_follow_requests_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/followed_tags", @slon_http_request_path(session))) {
@slon_api_v1_followed_tags_get(session);
return;
}

View file

@ -0,0 +1,9 @@
if (!StrICmp("/api/v1/instance", @slon_http_request_path(session))) {
@slon_http_send_json(session, db->o("instance"));
return;
}
if (!StrICmp("/api/v2/instance", @slon_http_request_path(session))) {
@slon_api_v2_instance_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/api/v1/notifications", @slon_http_request_path(session))) {
@slon_api_v1_notifications_get(session);
return;
}

View file

@ -0,0 +1,9 @@
if (!StrICmp("/oauth/authorize", @slon_http_request_path(session))) {
@slon_http_send_html_file(session, "M:/Slon/Static/oauth/authorize.html");
return;
}
if (!StrICmp("/oauth/verify_access", @slon_http_request_path(session))) {
@slon_oauth_verify_access_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v2/suggestions", @slon_http_request_path(session))) {
@slon_api_v2_suggestions_get(session);
return;
}

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/api/v1/timelines", @slon_http_request_path(session))) {
@slon_api_v1_timelines_get(session);
return;
}

28
Slon/Endpoints/Get/Web.HC Normal file
View file

@ -0,0 +1,28 @@
if (String.EndsWith(".css", @slon_http_request_path(session))) {
@slon_http_set_content_type(session, "text/css");
@slon_http_send_file(session, "M:/Slon/Static/css/main.css");
return;
}
if (!StrICmp("/js/header.js", @slon_http_request_path(session))) {
@slon_http_set_content_type(session, "text/javascript");
@slon_http_send_file(session, "M:/Slon/Static/js/header.js");
return;
}
if (String.EndsWith(".js", @slon_http_request_path(session))) {
@slon_http_set_content_type(session, "text/javascript");
@slon_http_send_file(session, "M:/Slon/Static/js/statuses.js");
return;
}
if (!StrICmp("/alec.png", @slon_http_request_path(session))) {
@slon_http_set_content_type(session, "image/png");
@slon_http_send_file(session, "A:/avatar-circle-4bpp.png");
return;
}
if (String.BeginsWith("/@", @slon_http_request_path(session))) {
@slon_web_user_get(session);
return;
}

View file

@ -0,0 +1,14 @@
if (!StrICmp("/.well-known/host-meta", @slon_http_request_path(session))) {
@slon_host_meta(session);
return;
}
if (!StrICmp("/.well-known/oauth-authorization-server", @slon_http_request_path(session))) {
@slon_oauth_well_known(session);
return;
}
if (!StrICmp("/.well-known/webfinger", @slon_http_request_path(session))) {
@slon_webfinger(session);
return;
}

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/api/v1/accounts", @slon_http_request_path(session))) {
@slon_api_v1_accounts_patch(session);
return;
}

View file

@ -0,0 +1,4 @@
if (String.BeginsWith("/users/", @slon_http_request_path(session))) {
@slon_activitypub_users_post(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/apps", @slon_http_request_path(session))) {
@slon_api_v1_apps_post(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/oauth/token", @slon_http_request_path(session))) {
@slon_oauth_token_post(session);
return;
}

View file

@ -0,0 +1,4 @@
if (!StrICmp("/api/v1/statuses", @slon_http_request_path(session))) {
@slon_api_v1_statuses_post(session);
return;
}