Skip to content

Commit 3e402cd

Browse files
committed
Add status endpoint that does nothing but return 200 OK
1 parent d48bc1e commit 3e402cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/graphql.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ pub async fn serve_graphql(db: &Path, opts: ServeOptions) {
6868
.data(opts.policy.map(PolicyCheck::new))
6969
.finish();
7070
let app = Router::new()
71+
// status check endpoint allows external processes to monitor status of server without
72+
// making graphql queries
73+
.route("/status", get(|| async {}))
7174
.route("/graphql", post(graphql_handler))
7275
.route("/graphiql", get(graphiql))
7376
.layer(Extension(schema));

0 commit comments

Comments
 (0)