|
|
@ -27,6 +27,12 @@ namespace FLocal.IISHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region robots |
|
|
|
|
|
|
|
if(context.httprequest.Path.ToLower().StartsWith("/robots.txt")) { |
|
|
|
|
|
|
|
return new handlers.response.RobotsHandler(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
switch(context.requestParts[0].ToLower()) { |
|
|
|
switch(context.requestParts[0].ToLower()) { |
|
|
|
case "q": |
|
|
|
case "q": |
|
|
|
return new handlers.response.QuickLinkHandler(); |
|
|
|
return new handlers.response.QuickLinkHandler(); |
|
|
@ -97,6 +103,8 @@ namespace FLocal.IISHandler { |
|
|
|
return new handlers.response.UserPostsHandler(); |
|
|
|
return new handlers.response.UserPostsHandler(); |
|
|
|
case "replies": |
|
|
|
case "replies": |
|
|
|
return new handlers.response.UserRepliesHandler(); |
|
|
|
return new handlers.response.UserRepliesHandler(); |
|
|
|
|
|
|
|
case "pollsparticipated": |
|
|
|
|
|
|
|
return new handlers.response.UserPollsParticipatedHandler(); |
|
|
|
default: |
|
|
|
default: |
|
|
|
return new handlers.WrongUrlHandler(); |
|
|
|
return new handlers.WrongUrlHandler(); |
|
|
|
} |
|
|
|
} |
|
|
|