Jump to content

blackeye

Members
  • Posts

    2
  • Joined

  • Last visited

blackeye's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. @thomasaull jeah that didn't worked i found out what is or was wrong i have my processwire on a subroute http://myserver.de/customerPw/ <- so the hook in the RestApi.module couldn't work due to the regex only looking for /^ so my api would have been http://myserver.de/customerPw/api but only http://myserver.de/api would have been allowed i changed the regex to : $regex = '/\/' . $endpoint . '\/?.*/m'; but i am thinking if i am just trying to remove the host from the request so the module can work properly the next issue cam in the router.php where the /api/ part is removed from the request so my request is now customerPw/users/ which cannot be found aswell i was thinking okay i can just add the prefix to the routes.php but then it doesn't work for users for some reason, couldn't find out why next step will be removing the hostname or changing the api route to /customerPw/api i think this might be adressed in the readme if someone like me uses multiple pw instances on one server
  2. @thomasaull hey i got this weird issue that i installed the module and basically i can't even get the /api/users route to work it didn't create any folders so i copied from modulex\RestApi\apiTemplate everything into \site\api\ but still there is no possibility to be able to run /api/users did i miss anything from the readme ? O.o
×
×
  • Create New...