Deploy with docker-compose (#1)
Deploy using docker-compose and GitHub Actions. Created a simple get endpoint to check if server is running on / Updated address from 127.0.0.1 to 0.0.0.0
This commit is contained in:

committed by
GitHub

parent
3ad1ad53fc
commit
c1b9273e0c
11
src/routing/index.rs
Normal file
11
src/routing/index.rs
Normal file
@ -0,0 +1,11 @@
|
||||
use axum::Router;
|
||||
use axum::routing::get;
|
||||
|
||||
pub fn router() -> Router {
|
||||
Router::new()
|
||||
.route("/", get(index))
|
||||
}
|
||||
|
||||
async fn index() -> &'static str {
|
||||
"Welcome to the Simplify Truths API!\n"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
pub(crate) mod simplify;
|
||||
pub(crate) mod table;
|
||||
pub(crate) mod table;
|
||||
pub(crate) mod index;
|
Reference in New Issue
Block a user