File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
examples/js/express/mysql Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -107,4 +107,4 @@ const register = (app, pool) => {
107107 } )
108108}
109109
110- exports . register = register ;
110+ exports . register = register
Original file line number Diff line number Diff line change 11const register = (app, pool) => {
22<%
33endpoints .forEach (function (endpoint ) {
4- const path = endpoint .path ;
4+ const path = endpoint .path
55
66 endpoint .methods .forEach (function (method ) {
77 if (! method .query ) {
88 // filter out aggregated_queries for a while (see #17)
99 return
1010 }
11- const hasGetOne = method .name === ' get' ;
12- const hasGetMany = method .name === ' get_list' ;
13- const sql = formatQuery (method .query );
14- const params = extractParamsFromQuery (method .query );
11+ const hasGetOne = method .name === ' get'
12+ const hasGetMany = method .name === ' get_list'
13+ const sql = formatQuery (method .query )
14+ const params = extractParamsFromQuery (method .query )
1515 const formattedParams = params .length > 0
1616 ? ' \n { ' + formatParamsAsJavaScriptObject (params) + ' },'
1717 : ' '
@@ -84,13 +84,13 @@ endpoints.forEach(function(endpoint) {
8484 })
8585< %
8686 }
87- });
88- });
87+ })
88+ })
8989%>
9090 app.use((error, req, res, next) => {
9191 console.error(error)
9292 res.status(500).json({ "error": "Internal Server Error" })
9393 })
9494}
9595
96- exports.register = register;
96+ exports.register = register
You can’t perform that action at this time.
0 commit comments