diff options
Diffstat (limited to 'cgi/weabot.py')
-rwxr-xr-x | cgi/weabot.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py index eaf4477..167fee6 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -382,13 +382,6 @@ class weabot(object): except Exception as messagez: self.output = "Error: " + \ str(messagez) + " : " + str(self.formdata) - elif path_split[1] == "mod": - import modapi - caught = True - self.headers = [("Content-Type", "application/json"), ("Access-Control-Allow-Origin", "*"), ("Access-Control-Allow-Methods", - "PUT, GET, POST, DELETE, OPTIONS"), ("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With")] - OpenDb() - modapi.api(self, path_split) if not caught: # Redirect the user back to the front page self.output += '<html xmlns="http://www.w3.org/1999/xhtml"><body><meta http-equiv="refresh" content="0;url=%s" /><p>--> --> --></p></body></html>' % Settings.HOME_URL |