ezralazuardy / heimdall

Painless OAuth 2.0 Server for CodeIgniter 4 🔥
https://heimdall.lazuardy.tech
MIT License
39 stars 11 forks source link

Route fix in documentation #11

Closed ergec closed 3 months ago

ergec commented 3 years ago

Hello, On this page https://heimdall.ezralazuardy.com/documentation/implementation#set-up-the-route-1

Following route works if you don't use any segments $routes->get('rest/users', 'Rest/Users::getUsers');

If you want to use segments it has to be like this. (backslash instead of forwarslash between Rest and Users)

$routes->get('rest/(:segment)/users', 'Rest\Users::getUsers/$1');

ezralazuardy commented 3 months ago

thanks for the suggesstion! its now implemented on https://heimdall.lazuardy.tech/implementation#set-up-the-route-1