move admin API to /admin/ subfolder
This commit is contained in:
1 parent
b663789bdb
commit
030cc2a903
3 files changed
+21
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
use crate::api::schema::*;
|
||||
use crate::api::router::*;
|
||||
use serde_json::{json};
|
||||
|
||||
pub mod datastore;
|
||||
|
||||
pub fn router() -> Router {
|
||||
|
||||
let route = Router::new()
|
||||
.get(ApiMethod::new(
|
||||
|_,_| Ok(json!([
|
||||
{"subdir": "datastore"}
|
||||
])),
|
||||
ObjectSchema::new("Directory index.")))
|
||||
.subdir("datastore", datastore::router());
|
||||
|
||||
route
|
||||
}
|
||||
File renamed without changes.
Reference in new issue
Block a user