Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ jobs:
profile: minimal
override: true

- name: Run cargo update --locked
run: cargo update --locked
- name: Run cargo build
run: cargo build

- name: Run cargo test
run: cargo test

- name: Run cargo build
run: cargo build
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ async fn main() -> ExitCode {
errors::catchers::handle_400,
],
)
.mount("/", openapi_get_routes![routes::health,])
.mount("/health", openapi_get_routes![routes::health,])
.mount(
"/v1",
openapi_get_routes![
routes::healthy,
routes::health,
routes::policies::get_policies,
routes::policies::get_policy,
routes::policies::create_policy,
Expand Down
5 changes: 2 additions & 3 deletions src/routes/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use rocket::get;
use rocket::response::status;
use rocket_okapi::openapi;

pub mod authorization;
Expand All @@ -9,6 +8,6 @@ pub mod schema;

#[openapi]
#[get("/")]
pub async fn healthy() -> status::NoContent {
status::NoContent
pub async fn health() -> &'static str {
"ok"
}
Loading