Update route handler snippet