Don't forget to lycansubscribe
commits
Author
Commit
Message
Date
since the user is passed in params, and in POST they're sent as a JSON body, we need to:
1) parse the params from the JSON manually, Sinatra doesn't do that
2) add an OPTIONS route for the CORS preflight
in production the API isn't called directly from the browser, but through the PDS proxy
Since we want to be able to track the progress of the import, and we do it by checking the time of the oldest processed (not queued) item, we need to make sure that all items are put into the queue to be processed by PostDownloader in order