-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: spark routes
does not show routes at all
#6270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
spark routes
does not show routes at all
A couple of thoughts: 1- when did this break? I used this on a 4.2.1 install a couple of nights ago and it works fine. |
|
I tested with Shield and works fine. $ php spark routes
CodeIgniter v4.2.1 Command Line Tool - Server Time: 2022-07-15 23:33:02 UTC-05:00
+--------+-------------------------+--------------------+--------------------------------------------------------------------+----------------+---------------+
| Method | Route | Name | Handler | Before Filters | After Filters |
+--------+-------------------------+--------------------+--------------------------------------------------------------------+----------------+---------------+
| GET | / | | \App\Controllers\Home::index | | toolbar |
| GET | register | | \CodeIgniter\Shield\Controllers\RegisterController::registerView | | toolbar |
| GET | login | | \CodeIgniter\Shield\Controllers\LoginController::loginView | | toolbar |
| GET | login/magic-link | magic-link | \CodeIgniter\Shield\Controllers\MagicLinkController::loginView | | toolbar |
| GET | login/verify-magic-link | verify-magic-link | \CodeIgniter\Shield\Controllers\MagicLinkController::verify | | toolbar |
| GET | logout | | \CodeIgniter\Shield\Controllers\LoginController::logoutAction | | toolbar |
| GET | auth/a/show | auth-action-show | \CodeIgniter\Shield\Controllers\ActionController::show | | toolbar |
| POST | register | | \CodeIgniter\Shield\Controllers\RegisterController::registerAction | | toolbar |
| POST | login | | \CodeIgniter\Shield\Controllers\LoginController::loginAction | | toolbar |
| POST | login/magic-link | | \CodeIgniter\Shield\Controllers\MagicLinkController::loginAction | | toolbar |
| POST | auth/a/handle | auth-action-handle | \CodeIgniter\Shield\Controllers\ActionController::handle | | toolbar |
| POST | auth/a/verify | auth-action-verify | \CodeIgniter\Shield\Controllers\ActionController::verify | | toolbar |
+--------+-------------------------+--------------------+--------------------------------------------------------------------+----------------+---------------+ |
This bug has not been released, but it is terrible and I would like to merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is correct. I have worked with our strange way of seeding routes recently and this is how you have to do it.
Description
Follow-up #6110
Conig/Routes.php
Before:
After:
Checklist: