Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F7363222
D1876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1876.diff
View Options
diff --git a/assets/favicon.ico b/assets/favicon.ico
deleted file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/src/app.rs b/src/app.rs
--- a/src/app.rs
+++ b/src/app.rs
@@ -6,9 +6,13 @@
pub fn run () {
let routes = routes![
+ // Monitoring
status,
- favicon,
+
+ // /docker/registry
get_registry_stats,
+
+ // /docker/registry/repository
get_repository_info,
get_all_repositories,
find_repository_by_layer,
diff --git a/src/requests.rs b/src/requests.rs
--- a/src/requests.rs
+++ b/src/requests.rs
@@ -4,30 +4,24 @@
use crate::registry::{Registry, Repository};
use limiting_factor::api::replies::*;
-use rocket::response::NamedFile;
#[get("/status")]
pub fn status() -> &'static str {
"ALIVE"
}
-#[get("/favicon.ico")]
-pub fn favicon() -> Option<NamedFile> {
- NamedFile::open("assets/favicon.ico").ok()
-}
-
// -------------------------------------------------------------
-// /registry
+// /docker/registry
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-#[get("/registry/stats")]
+#[get("/stats")]
pub fn get_registry_stats() -> ApiJsonResponse<Registry> {
Registry::with_default_location()
.into_json_response()
}
// -------------------------------------------------------------
-// /repository
+// /docker/registry/repository
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#[get("/repository/<repository_name>")]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 13:08 (13 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606586
Default Alt Text
D1876.diff (1 KB)
Attached To
Mode
D1876: Tweak path to mount the microservice at an API end point
Attached
Detach File
Event Timeline
Log In to Comment