By default, Laravel prefixes API routes with /api. So when you define routes in routes/api.php, you must access them like /api/auth/register
/api
/api/auth/register