Create a new specific route for schema

This commit is contained in:
Quentin de Quelen 2019-11-19 17:40:11 +01:00
parent 2b3c91aabd
commit e6465f4ea1

View File

@ -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("/")