'Best way to handle basic HTTP routes in Laravel 9

I have a use case in an app that I'm making where I need to use Star Micronics CloudPRNT API to connect a thermal printer to the app. When the printer hits my APP API with a GET request to pull a print job, I'm running into an issue.

They have a setting to give an alternate URL for the print job, which I'm trying to get the printer to use, but my Apache logs show that the printer is not even pinging the alternate URL but hitting a URL based on classic HTTP Basic.

/api/prnt?mac=<mac address here>&type=text%2Fplain&token=17ebfeb9-9407-11ec-adc2-dcfb48dbe7f0

My main issue is that the printer will include, exclude, and reorder the inputs randomly based on the print job and what peripherals might be connected to the printer at the site so that the URL will have no consistent pattern.

I've looked through the documentation and scoured Google with no real luck. Can anyone suggest a way to handle routes like this?



Sources

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

Source: Stack Overflow

Solution Source