-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(recipe): Pagination Support for Recipes (#22)
* feat(pagination): add pagination functionality * ft(recipes-pagination): document with swagger * feat(recipes-pagination): fix logic * feat(recipes-pagination): use offset instead of page * feat(recipes-pagination): fix test * feat(recipes-pagination): test for offsets [Delivers #164139782]
- Loading branch information
1 parent
b8e6f86
commit f779d53
Showing
8 changed files
with
271 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
require('@babel/register'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
"config": path.resolve('./server/config', 'db-config.js'), | ||
"models-path": path.resolve('./server/models'), | ||
"seeders-path": path.resolve('./server/seeders'), | ||
"migrations-path": path.resolve('./server/migrations') | ||
}; | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,4 +86,4 @@ | |
"node_modules/*" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import env from './env-config'; | ||
|
||
const { DATABASE_URL } = env; | ||
|
||
module.exports = { | ||
development: { | ||
env_variable: 'DATABASE_URL', | ||
dialect: 'postgres', | ||
operatorsAliases: false | ||
operatorsAliases: false, | ||
url: DATABASE_URL | ||
}, | ||
test: { | ||
env_variable: 'DATABASE_URL', | ||
dialect: 'postgres', | ||
operatorsAliases: false | ||
operatorsAliases: false, | ||
url: DATABASE_URL | ||
}, | ||
production: { | ||
env_variable: 'DATABASE_URL', | ||
dialect: 'postgres', | ||
operatorsAliases: false, | ||
url: DATABASE_URL, | ||
logging: false | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters