How to adapt the rounting for a new site

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
ArthurHenrique
Posts: 18
Joined: 28 Jan 2021, 18:30

How to adapt the rounting for a new site

Post by ArthurHenrique » 28 Jan 2021, 19:00

I have created a new site using /*php artisan aimeos:setup <site code> [<template site>]*/ like the documentation recommended and it works, but I've been some trouble to adapt the rounting. Could someone help me? An example would be great, this is what the documentation said to do:

'routes' => [
'jsonapi' => ['prefix' => '{site}/jsonapi', 'middleware' => ['web', 'api']],
'account' => ['prefix' => '{site}/profile', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => '{site}/shop', 'middleware' => ['web']]
],

Maybe it's a obvious question but I'm really need some help, thanks :) .

Enviroment:
Windows 10
PHP = 7.2
Laravel = 6.0
Aimeos = 2020.10

User avatar
aimeos
Administrator
Posts: 7893
Joined: 01 Jan 1970, 00:00

Re: How to adapt the rounting for a new site

Post by aimeos » 29 Jan 2021, 10:01

Look at your ./config/shop.php file, there you will find the lines you have to change.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply