Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Routes are returning 500 Error after latest update

Patrick Meppe   ( User )

Commented 3 years ago

Hi. A couple of months ago I wrote a small module.
After updating the system to version 2.1.10 a couple of hours ago the routes leading to my module started returning a 500 Internal Server Error.

While debugging, I noticed that the URL pattern had changed. Newly the company ID seems to be added to the URL.
I'm also using the "Employee" Module available in your App Store. After its update its URLs now also contain the company ID.

So my question is how can I update my module in order to include the company to the URLs while setting the routes?

Greetings Patrick M.

Patrick Meppe   ( User )

Commented 3 years ago

I found the solution to the problem.
In ./modules/__MODULE__/Routes/admin.php
`Route::admin` should be used instead of `Route::group` .

Denis Dulici   ( Admin )

Commented 3 years ago

Hello Patrick,

Yes, you should use the new route macros: admin, portal, signed.

Regards

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions