Skip to content

Commit d23684d

Browse files
committed
refactor(js): group routes together
Should be in e4c4814 commit. Relate to #27
1 parent 87c870a commit d23684d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/js/express/mysql/app.js

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const pool = mysql.createPool({
3434
})
3535

3636
routes.register(app, pool)
37-
3837
custom_routes.register(app, pool)
3938

4039
const port = process.env.PORT || 3000

src/templates/app.js.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const pool = mysql.createPool({
4848
routes.register(app, pool)
4949
<% customRouteFilenames.forEach(filename => {
5050
const routerName = removeExtension(filename)
51-
%>
51+
-%>
5252
<%- routerName %>.register(app, pool)
5353
<% }) -%>
5454

0 commit comments

Comments
 (0)