Tom Ashworth
aeee052d79
Add github buttons and routes.
2013-06-17 16:54:58 +01:00
Remy Sharp
7959680227
fixed up the CORS support for the API
2013-06-12 11:03:18 +01:00
Remy Sharp
e34b4a97dd
Merge branch 'ably-forks-api'
2013-06-11 12:43:10 +01:00
Remy Sharp
b537de0854
Finishing up API, to allow for read only
...
- Added allowReadOnly in config - defaults to true
- read only has CORS support
- Add handler for :rev route, and autoload the latest (needs more cleaning up)
- Allow xhr requests to both /api/x and /abcd/123 (how it originally worked)
2013-06-11 12:41:00 +01:00
Matthew O'Riordan
14b984f55c
Allow client interface to be turned on/off with ENV vars
...
Building on pull request https://github.com/remy/jsbin/pull/610 , this allows these settings to be configured as an Environment variable. This is needed for Heroku support, see pull request https://github.com/remy/jsbin/pull/607
2013-05-27 13:50:24 +01:00
Tom Ashworth
c6df7180df
Support switching off user-related menus via config.
2013-05-24 15:44:58 +01:00
Remy Sharp
c2afbe40b6
Merge branch 'api' of git://github.com/ably-forks/jsbin into ably-forks-api
2013-05-21 15:31:40 +01:00
Tom Ashworth
74cd8a4b3b
Fix issue where unprocessed data wasn't being sent.
2013-05-20 12:40:06 +01:00
Tom Ashworth
2349637630
Fix /watch by sending raw and processed over EventStream.
2013-05-20 12:37:46 +01:00
Tom Ashworth
65b787e946
Don't modify in place.
2013-05-20 11:53:51 +01:00
Tom Ashworth
0628a26c36
Process data before sending it from spike.
2013-05-20 11:41:00 +01:00
Matthew O'Riordan
44d030e88a
Flag to enforce API requests over SSL
2013-05-20 07:33:26 +02:00
Matthew O'Riordan
fe0c142de7
API should return latest bin revision if not specified
2013-05-20 07:24:54 +02:00
Matthew O'Riordan
a234941cf3
API can require an API key for a user (disallow anonymous)
2013-05-20 07:18:57 +02:00
Matthew O'Riordan
52fa78aa31
API middleware adding req.isApi
2013-05-19 16:36:03 +02:00
Matthew O'Riordan
24e397b1fb
Create revision for bin API end point
2013-05-19 16:27:34 +02:00
Matthew O'Riordan
666ab20a2e
Remove annoying console output from SQLite driver
2013-05-19 15:57:19 +02:00
Matthew O'Riordan
7c8d63aa78
Send JSON response for API errors
2013-05-19 14:35:17 +02:00
Matthew O'Riordan
364dec1b25
Modify middleware to bypass CSRF for exact or regex matches
2013-05-19 14:16:48 +02:00
Matthew O'Riordan
3457710bbd
Create Bin via API route
2013-05-19 11:49:43 +02:00
Matthew O'Riordan
d7ab06a11a
Route bug fix for API requests without revision
2013-05-18 18:29:13 +02:00
Matthew O'Riordan
6b36b05853
API for retrieving a bin by ID and revision
2013-05-18 17:57:46 +02:00
Remy Sharp
1977bb024f
Merge pull request #598 from remy/fix/bling-bling-587
...
Don't use replace to swap in code with dollars in it, fix #587 .
2013-05-17 05:20:37 -07:00
Tom Ashworth
099d21b118
Remove lots of logging.
2013-05-16 14:50:12 +01:00
Tom Ashworth
03089ddf7a
Rename file-db to file.js, and support new revisions.
2013-05-16 14:49:43 +01:00
Tom Ashworth
6c2b145478
Support creating of bins with file-db.
2013-05-16 14:49:27 +01:00
Tom Ashworth
66d699525c
Don't use replace to swap in code with dollars in it, fix #587 .
2013-05-16 14:40:46 +01:00
Remy Sharp
40d33475a1
Try moving cancel of focus event to earlier in code
2013-05-14 18:26:53 +01:00
Tom Ashworth
214517fd40
Resolve config from cwd and document the JSBIN_CONFIG variable.
2013-05-01 09:39:52 +01:00
Tom Ashworth
fcd9716278
Resolve custom config paths before loading the file.
2013-04-30 15:50:45 +01:00
Remy Sharp
68323aee1b
separate the tracking of application over the rendered views
2013-04-21 10:57:26 +01:00
Remy Sharp
6c81c6159e
support /about again
2013-04-09 14:46:19 +01:00
Remy Sharp
6861fd7bac
removed logging, and fixed sqlite module - was using completely the wrong method
2013-04-06 10:41:13 +01:00
Remy Sharp
be56fa0db8
If logged-in user created first revision of a bin, then they "own" the bin url - and other users will only be able to clone the url
2013-04-05 22:09:12 +01:00
Remy Sharp
fc18e6e722
Fixed #481 . Somehow the coffeescript serverside compiler was NEVER working. Not sure how I missed this. Also updated to coffee-script 1.6.2
2013-03-28 10:25:07 +00:00
Remy Sharp
3a18cc3446
put archiveBin back in to sqlite module
2013-03-16 07:01:16 -04:00
Remy Sharp
ea37a303e2
reverting change to SQL - only server change that could be causing cpu spike. ref #511
2013-03-13 09:03:03 +00:00
Remy Sharp
09b27214d8
increase amount of data sent back (and remove legacy codemirror). ref #511
2013-03-11 17:27:18 +00:00
Remy Sharp
c6b09e08d6
echo version when jsbin runs
2013-02-21 11:20:57 +00:00
Remy Sharp
c890fe8b56
fixed archives again - got killed via the query update
2013-02-19 22:29:46 +00:00
Tom Ashworth
e48d568bf0
Track user query times.
2013-02-14 15:58:54 +00:00
Tom Ashworth
9e45a8f3e0
Track bin query times.
2013-02-14 15:53:23 +00:00
Tom Ashworth
61db8cd38e
Monitoring spikes, db method calls and errors.
2013-02-14 15:30:33 +00:00
Remy Sharp
e3fe6d34bf
remove the "about" causing wide col
2013-02-12 23:58:35 +00:00
Remy Sharp
f8b19416e5
revive the good home query
2013-02-12 23:10:22 +00:00
Remy Sharp
250e9846d9
read .js from a post in case .javascript is missing
2013-02-07 16:15:49 +00:00
Remy Sharp
8ffd937423
fixed sending json back to an HTML ajax request, and just send the snippet if it is an HTML ajax request
2013-01-17 16:54:54 +00:00
Remy Sharp
7489bf933a
allow user to navigate to other user home listings via /user/rem
2013-01-17 16:10:47 +00:00
Remy Sharp
2599dbc157
expose the public /list/:user pages again
2013-01-17 13:00:52 +00:00
Tom Ashworth
8d17711baa
Allow for 1 month timespans.
2013-01-17 11:42:21 +00:00