Permalink
Browse files

build server and commands

Build server and commands so that they can be run in production without
babel plugins.
  • Loading branch information...
edsu committed Nov 29, 2017
1 parent eb03882 commit 8d0bc9875c5e7574ceba607f823fdd71d3f647d3
Showing with 88 additions and 38 deletions.
  1. +1 −0 .babelrc
  2. +6 −4 notes/api.md
  3. +70 −21 package-lock.json
  4. +7 −8 package.json
  5. +1 −1 server.js
  6. +0 −1 src/server/api.js
  7. +3 −3 webpack.base.config.js
@@ -1,3 +1,4 @@
{
"plugins": ["transform-runtime"],
"presets": ["env", "react", "stage-0"]
}
@@ -29,13 +29,15 @@ the trending locations are updated to use those places.
Post a query as JSON and get a redirect to a URL for the search result.
### /search/{search-id} *(GET)*
### /search/{search-id} *(GET, PUT)*
Get the current results of a search.
Get or updated the current results of a search.
### /search/{search-id}/tweets *(GET)*
### /search/{search-id}/tweets *(GET, PUT)*
Recent tweets in a given search.
Get the recent tweets in a given search. If the *url* parameter is used then
only tweets that reference that URL in the given search will be returned. When
issuing a PUT more tweets matching the query will be fetched.
### /search/{search-id}/users *(GET)*
Oops, something went wrong.

0 comments on commit 8d0bc98

Please sign in to comment.