Create a new specific route for schema
@@ -30,10 +30,14 @@ pub fn load_routes(app: &mut tide::App<Data>) {
router
.at("/")
- .get(index::get_index_schema)
- .put(index::update_schema)
+ .get(index::get_index)
.delete(index::delete_index);
+ router
+ .at("/schema")
+ .get(index::get_index_schema)
+ .put(index::update_schema);
+
router.at("/documents").nest(|router| {
router
.at("/")
