document route functions in opium app