Skip to content

Commit c25091b

Browse files
committed
uncomment to use swagger
1 parent 51d100a commit c25091b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aiscript-runtime/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ async fn run_server(
190190
if config.apidoc.enabled {
191191
match config.apidoc.doc_type {
192192
config::ApiDocType::Swagger => {
193-
// router = router.route(
194-
// &config.apidoc.path,
195-
// get(move || async { Html(include_str!("openapi/swagger.html")) }),
196-
// );
193+
router = router.route(
194+
&config.apidoc.path,
195+
get(move || async { Html(include_str!("openapi/swagger.html")) }),
196+
);
197197
}
198198
config::ApiDocType::Redoc => {
199199
router = router.route(

0 commit comments

Comments
 (0)