Restructure routers and OpenAPI support #320

Merged
parabitdev merged 11 commits from parabit/restructure-routers into master 2026-01-05 23:40:25 +00:00
parabitdev commented 2025-12-29 21:56:52 +00:00 (Migrated from github.com)
No description provided.
parabitdev commented 2026-01-02 18:12:21 +00:00 (Migrated from github.com)

Only thing that will change is moving the api browser page behind a check for !IS_PROD while leaving the direct route to the OAS spec in place.

Only thing that will change is moving the api browser page behind a check for !IS_PROD while leaving the direct route to the OAS spec in place.
parabitdev (Migrated from github.com) reviewed 2026-01-02 21:20:55 +00:00
parabitdev (Migrated from github.com) commented 2026-01-02 21:20:55 +00:00

Yes, I added it as I know you like having a top-level overview.

Yes, I added it as I know you like having a top-level overview.
parabitdev (Migrated from github.com) reviewed 2026-01-02 21:22:23 +00:00
parabitdev (Migrated from github.com) commented 2026-01-02 21:22:23 +00:00

just server then navigate to 127.0.0.1:8080/swagger-ui

`just server` then navigate to 127.0.0.1:8080/swagger-ui
parabitdev (Migrated from github.com) reviewed 2026-01-05 23:38:40 +00:00
@ -29,2 +29,4 @@
serde_json = "1.0.140"
[features]
swagger-ui = ["dep:utoipa-swagger-ui"]
parabitdev (Migrated from github.com) commented 2026-01-05 23:38:40 +00:00

It sets the utoipa-swagger-ui dependency to required if the feature is set instead of it being optional as it is set currently. Production build lacks that feature so it won't build that dependency.

It sets the `utoipa-swagger-ui` dependency to required if the feature is set instead of it being optional as it is set currently. Production build lacks that feature so it won't build that dependency.
parabitdev (Migrated from github.com) reviewed 2026-01-05 23:39:08 +00:00
@ -29,2 +29,4 @@
serde_json = "1.0.140"
[features]
swagger-ui = ["dep:utoipa-swagger-ui"]
parabitdev (Migrated from github.com) commented 2026-01-05 23:39:08 +00:00

utoipa-swagger-ui = { version = "9.0.2", features = ["axum"], optional = true }

`utoipa-swagger-ui = { version = "9.0.2", features = ["axum"], optional = true }`
Sign in to join this conversation.
No description provided.