add routes for lessons && fix type in lesson controller