diff --git a/seasoned_api/.gitignore b/seasoned_api/.gitignore index ef087ec..436d607 100644 --- a/seasoned_api/.gitignore +++ b/seasoned_api/.gitignore @@ -60,4 +60,5 @@ typings/ # - - - - - # My own gitignore files and folders +shows.db conf/ diff --git a/seasoned_api/conf/development.json b/seasoned_api/conf/development.json deleted file mode 100644 index e349515..0000000 --- a/seasoned_api/conf/development.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "database": { - "host": "../shows.db" - }, - "webserver": { - "port": 31459 - }, - "tmdb": { - "apiKey": "" - }, - "raven": { - "DSN": "" - }, - "mail": { - "host": "", - "user": "", - "password": "", - "user_pi": "", - "password_pi": "" - }, - "authentication": { - "secret": "" - } -} diff --git a/seasoned_api/conf/output.log b/seasoned_api/conf/output.log deleted file mode 100644 index 8b13789..0000000 --- a/seasoned_api/conf/output.log +++ /dev/null @@ -1 +0,0 @@ - diff --git a/seasoned_api/src/tmdb/cache.js b/seasoned_api/src/tmdb/cache.js index 1a55117..4c8b62e 100644 --- a/seasoned_api/src/tmdb/cache.js +++ b/seasoned_api/src/tmdb/cache.js @@ -33,7 +33,7 @@ class Cache { * @param {Number} timeToLive the number of seconds before entry expires * @returnsĀ {Object} */ - set(key, value, timeToLive = 86400) { + set(key, value, timeToLive = 172800) { const json = JSON.stringify(value); return Promise.resolve() .then(() => this.database.run(this.queries.create, [key, json, timeToLive])) @@ -41,4 +41,4 @@ class Cache { } } -module.exports = Cache; \ No newline at end of file +module.exports = Cache; diff --git a/seasoned_api/src/webserver/access.log b/seasoned_api/src/webserver/access.log deleted file mode 100644 index 87ba069..0000000 --- a/seasoned_api/src/webserver/access.log +++ /dev/null @@ -1,4 +0,0 @@ -::1 - - [02/Jun/2017:06:34:49 +0000] "GET /api/v1/seasoned/all HTTP/1.1" 200 1016 "-" "curl/7.51.0" -::1 - - [02/Jun/2017:06:34:50 +0000] "GET /api/v1/seasoned/all HTTP/1.1" 200 1016 "-" "curl/7.51.0" -::1 - - [02/Jun/2017:06:45:59 +0000] "GET /api/v1/seasoned/all HTTP/1.1" 200 1016 "-" "curl/7.51.0" -::1 - - [02/Jun/2017:06:48:30 +0000] "GET /api/v1/seasoned/all HTTP/1.1" 200 1016 "-" "curl/7.51.0"