<?php

namespace App\Http\Middlewares;

use Closure;
use Illuminate\Http\Request;

class ApiHeaderMiddleware
{
    /**
     * @param Request $request
     * @param Closure $next
     * @return mixed
     */
    public function handle(Request $request, Closure $next): mixed
    {
        $request->headers->set('Accept', 'application/json');
        return $next($request);
    }
}
