Express routes query parameters

how to create a express applicaton with routes
route-1:
which takes fullname as a query parameter and return firstname and lastname as output.
route-2:
which takes dateof birth in a format yyyy-mm-dd and return the age