Skip to content

Commit 624ba06

Browse files
committed
refactor: rename import alias
Relate to #27
1 parent 2b51906 commit 624ba06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/templates/app.py.ejs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<%
22
3-
// "custom_routes.py" => "custom_route"
3+
// "custom_routes.py" => "custom_router"
44
function fileName2routerName(filename) {
5-
return filename.replace(/_routes\.py$/, '_route')
5+
return filename.replace(/_routes\.py$/, '_router')
66
}
77
88
// "custom_routes.py" => "custom_routes"
@@ -22,4 +22,4 @@ app = FastAPI()
2222
app.include_router(router)
2323
<% customRouteFilenames.forEach(filename => { %>
2424
app.include_router(<%= fileName2routerName(filename) %>)
25-
<% }) -%>
25+
<% }) -%>

0 commit comments

Comments
 (0)