Commit Graph

18 Commits

Author SHA1 Message Date
4c0dd11c46 Es-module requires file extension, updated all imports 2022-08-24 18:35:36 +02:00
ce45ed7b7f All file imports change from commonjs to es-module 2022-08-22 23:03:19 +02:00
628ed52012 Fix: Tests lint and src folder (#138)
* Automaticly fixable eslint issues, mostly 3 -> 2 space indentation

* fix: updated plex_userid to camelcase

* Linted and some consistency refactor on middleware

* eslint uses ecmaversion 2020 & allow empty catch rule

* Started linting source files

* Fixed eslint errors & improved a lot of error handling

* Set 2 eslint rules as warning temporarly

* Updated all import statements to be relative

* Updated mocha & nyc, resolved all lint issues in tests/

* Updated mocha & nyc. Removed production config. Updated gitignore

* Updated test commands to omit system tests, no exit code

* Updated test configuration w/ missing keys

* Chai modules defined in package.json & resolved linting errors

* Dockerfile copies development.example -> production.json. Simplified commands

* All api calls from tests use same chaiHttp implementation

Removes a list of fetch alternatives after being replaced by chaiHttp:
 - request
 - request-promise
 - supertest
 - supertest-as-promised

* Tests should use redis (mock) cache, not tmdb sqlite cache

* Disabled test asADeveloperIWantTheServerToStart

* Re-enable tests/system

* Use chaiHttp in asAUserIWantToRequestAMovie.

* Fixed redis expire & mock implmentation

* Replaced all fetch alternatives from source code and package.json

* Pass error from tmdb api back to client as errorMessage

* Updated authentication middleware to handle checks consitenctly

* Prevent assert error when checking request status, returns success 200

* Resolved merge conflicts

* Only build and publish docker container when branch master
2022-08-20 17:41:46 +02:00
1815a429b0 Fix: Linter warnings (#137)
* Automaticly fixable eslint issues, mostly 3 -> 2 space indentation

* fix: updated plex_userid to camelcase

* Linted and some consistency refactor on middleware

* eslint uses ecmaversion 2020 & allow empty catch rule

* Started linting source files

* Fixed eslint errors & improved a lot of error handling

* Set 2 eslint rules as warning temporarly
2022-08-20 17:21:25 +02:00
56262a45c8 Moved contents of seasoned_api up to root folder 2022-08-19 01:03:27 +02:00
47aa638fd8 Moved eveything related to the api to a seperate folder seasoned_api. 2017-08-06 16:45:02 +02:00
e77a05db07 Merge pull request #14 from KevinMidboe/client_feature
Client feature
2017-07-16 11:19:15 +02:00
c45df8a131 Added controller for calling POST request function for media items. 2017-07-16 11:08:14 +02:00
b2848e6a7e Merge pull request #13 from KevinMidboe/api
Verify that respond has content, if so send the content back. If no c…
2017-07-01 08:47:19 +02:00
1663f5931d Verify that respond has content, if so send the content back. If no content was found, send 404 status and error message 2017-07-01 08:46:37 +02:00
3bb43f08f2 Controller for handling submits of item requests. 2017-06-04 00:13:35 +02:00
6496988e51 Changed variable names to better reflect their purpose 2017-06-04 00:12:38 +02:00
dfb8c40a29 Routes request to correct function in plexRepo and if error, returns correct error. 2017-05-10 20:16:35 -06:00
a5ecaff00e Routes request to correct function in plexRepo and if error, returns correct error. 2017-05-10 20:16:05 -06:00
98d30257f0 Routes plex webhook to handler. 2017-05-10 20:14:55 -06:00
5464837682 Removed unused import 2017-05-10 19:46:59 -06:00
c662525988 Added page parameter to plex search function 2017-04-20 22:20:42 +02:00
16c89ab6e7 Added endpoints for plex searching 2017-04-14 18:54:30 +02:00