We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ceb4af commit e341fbeCopy full SHA for e341fbe
source/globals.js
@@ -3,13 +3,13 @@
3
import qs from 'querystring'
4
5
const root = 'https://stolaf.api.frogpond.tech/v1'
6
-export const API = (pth: string, query: ?Object=null) => {
+export const API = (pth: string, query: ?Object = null) => {
7
if (process.env.NODE_ENV !== 'production') {
8
if (!pth.startsWith('/')) {
9
throw new Error('invalid path requested from the api!')
10
}
11
12
- let url = root + pth
+ let url = root + pth
13
if (query) {
14
url += `?${qs.stringify(query)}`
15
0 commit comments