aboutsummaryrefslogtreecommitdiff
path: root/src/routes.ts
Commit message (Collapse)AuthorAgeFilesLines
* These changes moved a lot of the startup async to run in a streamlinedKevin J Hoerr2020-04-261-42/+16
| | | | | | | | | | async init function. This brings more logic "to light", so it should probably have unit tests added to check the edge cases. As a bonus, no async runs as a result of route initialization. Speaking of routes, it might be nice to trim down the route calls themselves with async functions, if possible. The upload routes in particular use a lot of async. Just a note for the future.
* Upgrade packages and fix express type changeKevin J Hoerr2020-04-261-1/+1
|
* #2 Add CSS, favicon for landing pageKevin J Hoerr2020-02-221-0/+9
|
* #8 Add router unit tests using supertestKevin J Hoerr2020-01-111-0/+34
| | | | Also moved the template processing from index to router.
* Add index.html template with route for integrationKevin J Hoerr2019-12-291-0/+5
|
* AOC-3 Catch promise rejections in POST requestKevin J Hoerr2019-12-211-3/+6
|
* Use nullish-coalescing op for env var assignmentsKevin J Hoerr2019-12-121-2/+2
|
* Add template process to serve bash fileKevin J Hoerr2019-12-091-0/+8
| | | | | | | | | | | | Unfortunately, a static file can't really be used to serve the connection - the host address is needed to link back to the server. Only a light library is needed to handle the template file though, and if more are needed in the future it should be a non-trivial task to add them to the process. By default I'm configuring this to work with drone.io, since that is the CI that I personally will be using (most likely). It should be non-trivial to configure other CI to handle the script as well.
* Add linting to project using EslintKevin J Hoerr2019-12-091-25/+24
|
* Promisify data flow in POST requestKevin J Hoerr2019-12-091-9/+21
|
* Use HeadIdentifier as reference for file retrievalKevin J Hoerr2019-12-081-39/+53
|
* Overhaul error handling for controllersKevin J Hoerr2019-12-081-23/+54
| | | | | | | | | | | This change fixes various issues with the GET endpoints to return more accurate error messages. It adds business logic error objects that are returned in a union type in the controllers. This change should help separate the business logic from the actual errors from upstream services. There may be required changes still with handling those upstream errors via Promises. Integration tests should be added to verify issues.
* Move from branch to repository document in MongoDBKevin J Hoerr2019-12-081-1/+10
|
* Refactor routes into separate fileKevin J Hoerr2019-12-081-0/+123