Created a middleware for the routes. During the checking, the web routes are losing its middleware due to conflict with the recent push. With this, the solution is to clone a new file and copy the codes that were not push from the old version to the new one.