'Laravel 9 Breeze with fortify how disable default routes?

I use laravel only as a backend for a mobile application, for this I use Laravel Sanctum api. I don’t need everything that is displayed in the browser on the site, so I want to disable all unnecessary routes for web. Some of the routes are quite simply removed from the file app/config/fortify.php. But there are a few routes that I don't need, such as login, logout or _ignition/execute-solution. Where they are located and how to disable them is not clear.

List of routes that fortify added and that I would like to disable.

  POST       _ignition/execute-solution
  GET|HEAD   _ignition/health-check
  POST       _ignition/update-config
  GET|HEAD   livewire/livewire.js
  GET|HEAD   livewire/livewire.js.map 
  POST       livewire/message/{name}
  GET|HEAD   livewire/preview-file/{filename}
  POST       livewire/upload-file
  POST       login
  POST       logout
  POST       user/confirm-password
  GET|HEAD   user/confirmed-password-status
  GET|HEAD   user/profile


Solution 1:[1]

You can remove package like as:

composer remove facade/ignition
composer remove livewire/livewire

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Omer YILMAZ