[BUG] Routing
M4ST3RX opened this issue · comments
Describe the bug
The current api url is /prequel-api but status still querying the /prequel/prequel-api/status url.
To Reproduce
Steps to reproduce the behavior:
- Go to '/prequel'
- Open DevTools
- See status requests failing
Expected behavior
Seeing status query the right url so it can get the information from the database.
Desktop (please complete the following information):
- Browser Google Chrome
- Version 75
Additional context
This may be just for me as I have made some changes and now updated to latest version but not changed the routes file.
If it occurs for others too then change ->prefix('/prequel-api')
to ->prefix(config('prequel.path') . '/prequel-api')
or the js that makes the query.
Also migration still sends request to /prequel-api/run/migrations
but the route have been changed to /prequel-api/migrations/run
Run $ php artisan prequel:update
👌 There’s been some changes to the routes file.
Ah yeah the changes made some conflicts and broke the js/css but it is now fixed.