Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F57003554
requests.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
requests.rs
View Options
//!
//! Requests handled by the microservice.
//!
use
crate
::
registry
::
Registry
;
use
limiting_factor
::
api
::
replies
::{
ApiJsonResponse
,
ApiResponse
};
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
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#[get(
"/registry/stats"
)]
pub
fn
get_registry_stats
()
->
ApiJsonResponse
<
Registry
>
{
Registry
::
with_default_location
()
.
into_json_response
()
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 19:30 (4 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4254654
Default Alt Text
requests.rs (665 B)
Attached To
Mode
rAPIREG Nasqueron private Docker registry API
Attached
Detach File
Event Timeline
Log In to Comment