Spotify / src /lib.rs
johndeniel's picture
Upload 10 files
61ff1f0 verified
raw
history blame
No virus
446 Bytes
mod router;
mod spotify;
pub async fn run() {
// Create a new `axum::Router` instance by calling the `app` function from the `router::routes` module
let app: axum::Router = router::routes::app();
// Bind the server to the address "0.0.0.0:7860" and serve the `app` using `axum::Server`
axum::Server::bind(&"0.0.0.0:7860".parse().unwrap())
.serve(app.into_make_service())
.await
.unwrap();
}