Example #1
0
 def do_GET(self):#A handler for all the GET requests the server recieves
     if self.path == "/Login":#checks the path of the request
         LoginHandler.processLogin(self)#passes the /Login requests onto the Login Handler script
     elif self.path == "/SaveNote":
         FileHandler.SaveNote(self)#passes the/SaveNote File request to the save file handler script
     elif self.path == "/LoadNote":
         FileHandler.LoadNote(self)#passes the /LoadNote requests to the load handler
     elif self.path == "/ListNotes":
         FileHandler.ListNotes(self)#passes to the handler
     else:#if the path doesn't match any of the routes that I've set up it will return a 404 error meaning that path couldn't be found
         self.send_response(404)