Protoqol / Prequel

Prequel for Laravel. Clear and concise database management. Unfortunately, not actively maintained due to time constraints.

Home Page:https://packagist.org/packages/protoqol/prequel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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:

  1. Go to '/prequel'
  2. Open DevTools
  3. See status requests failing

Expected behavior
Seeing status query the right url so it can get the information from the database.

Screenshots
image

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.