I would like create endpoint in Laravel which I can use in Linux to download zip archive.
I created:
public function download_templates()
{
return response()->file(base_path() . '/sites/templates.zip');
}
But when I use:
wget http://linktopage.com/api/download_templates
In result I receive HTML code of endpoint.
Someone has idea?