now allows you to specify the file path for post and get methods