mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
Meta: Add files to repository
This commit is contained in:
28
Slon/Endpoints/Get/Web.HC
Normal file
28
Slon/Endpoints/Get/Web.HC
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user