finish REST routes