Elegant MicroWeb interview question

RestAPI, laravel middle ware, CSRF tokens etc