Meta: Add files to repository
This commit is contained in:
parent
6d27d43268
commit
52cb92f587
120 changed files with 71820 additions and 0 deletions
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue