Skip to content

Commit

Permalink
adding test gtfs support
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Oct 14, 2024
1 parent ba49886 commit 5b7518e
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 35 deletions.
144 changes: 110 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ env_logger = "0"
log = "0"
rand = "0"

# gtfs
gtfs-realtime = "0.1.0"

utoipa = { version = "3", features = ["actix_extras", "uuid"] }
utoipa-swagger-ui = { version = "3", features = ["actix-web"] }
regex = "1"
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ async fn main() -> std::io::Result<()> {
.wrap(prometheus.clone())
.wrap(Logger::default())
.app_data(web::Data::new(redis_connectionpool.clone()))
.service(web::scope("/v1").service(routes::vehicles::vehicles_list))
.service(
web::scope("/v1")
.service(routes::vehicles::vehicles_list)
.service(routes::gtfs::gtfs_live_data),
)
.service(
SwaggerUi::new("/swagger-ui/{_:.*}")
.url("/api-doc/openapi.json", routes::ApiDoc::openapi()),
Expand Down
Loading

0 comments on commit 5b7518e

Please sign in to comment.