Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ service-configuration

rspack@1.3.0 # Integrate Rspack into Meteor for client and server app bundling
aldeed:collection2
aldeed:simple-schema
percolate:migrations
reywood:publish-composite
meteortesting:mocha
lmieulet:meteor-coverage
http

accounts-passwordless
email
aldeed:simple-schema@2.0.0
6 changes: 3 additions & 3 deletions app/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ accounts-github@1.5.1
accounts-google@1.4.1
accounts-oauth@1.4.7
accounts-passwordless@3.1.1
aldeed:collection2@4.1.5
aldeed:simple-schema@1.13.1
aldeed:collection2@4.2.2
aldeed:simple-schema@2.0.0
allow-deny@2.1.1
autoupdate@2.0.1
babel-compiler@7.15.1
Expand Down Expand Up @@ -47,7 +47,7 @@ logging@1.3.6
meteor@2.3.1
meteor-base@1.5.2
meteortesting:browser-tests@1.8.0
meteortesting:mocha@3.3.0
meteortesting:mocha@3.4.0
meteortesting:mocha-core@8.2.0
minifier-css@2.0.2
minifier-js@3.3.1
Expand Down
6 changes: 3 additions & 3 deletions app/imports/server/rest_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
import { WebApp } from 'meteor/webapp';
import bodyParser from 'body-parser';
import URL from 'url';
import { isFunction } from 'lodash';
// ORO modules
import { Robot } from './model';
Expand Down Expand Up @@ -259,8 +258,9 @@ async function validateApiKey(req, res) {
* from the URL search string "?..." for convenience
*/
function routeRequest(req) {
const url = URL.parse(req.url);
const queryParams = new URLSearchParams(url.query);
// Base is irrelevant: req.url is path+query only, and we only read pathname and search
const url = new URL(req.url, 'http://localhost');
const queryParams = url.searchParams;
for (const route of routes) {
const { method, path, accept } = route;
if (method == req.method) {
Expand Down
2,507 changes: 681 additions & 1,826 deletions app/package-lock.json

Large diffs are not rendered by default.

Loading
Loading