I need to separate the admin panel as one domain and the front end as another domain but the code and structure are the same (for-eg: I write a code for the backend and frontend I access through adb.com/admin and adb.com/home now I want to access like adb.com/admin as admin and frontend.adb.com/home as a front-end if the employee does not access the admin only access the employee panel). because I want to manage the admin panel only admin, not as an employee. this is what I wish to change and how can I achieve them?
Description:
I need to separate the admin panel as one domain and the front end as another domain but the code and structure are the same (for-eg: I write a code for the backend and frontend I access through adb.com/admin and adb.com/home now I want to access like adb.com/admin as admin and frontend.adb.com/home as a front-end if the employee does not access the admin only access the employee panel). because I want to manage the admin panel only admin, not as an employee. this is what I wish to change and how can I achieve them?