mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-18 15:18:04 +00:00
Live now moved to "/watch"
This commit is contained in:
parent
4d79eae197
commit
fc73f1525d
@ -156,11 +156,11 @@ app.get('/:bin/latest/edit', binHandler.redirectToLatest);
|
||||
// Quick and easy urls for test - allows me to do /rem/last on my mobile devices
|
||||
app.get('/:name/last?/:quiet(quiet)?', binHandler.getLatestForUser, spike.getStream, binHandler.getBinPreview);
|
||||
app.get('/:name/last/edit', binHandler.getLatestForUser, binHandler.getBin);
|
||||
app.get('/:name/last/live', binHandler.getLatestForUser, binHandler.getLiveEditBin);
|
||||
app.get('/:name/last/watch', binHandler.getLatestForUser, binHandler.getLiveEditBin);
|
||||
|
||||
// Edit
|
||||
app.get('/:bin/:rev?/edit', binHandler.getBin);
|
||||
app.get('/:bin/:rev?/live', binHandler.getLiveEditBin);
|
||||
app.get('/:bin/:rev?/watch', binHandler.getLiveEditBin);
|
||||
|
||||
// Save
|
||||
app.post('/save', binHandler.createBin);
|
||||
|
||||
@ -152,8 +152,8 @@ function codecastStream() {
|
||||
|
||||
}
|
||||
|
||||
var id = location.pathname.replace(/\/preview.*$/, '').replace(/\/edit.*$/, ''),
|
||||
codecasting = location.pathname.indexOf('edit/live') !== -1;
|
||||
var id = location.pathname.replace(/\/preview.*$/, '').replace(/\/edit.*$/, '').replace(/\/watch.*$/, ''),
|
||||
codecasting = location.pathname.indexOf('/watch') !== -1;
|
||||
queue = [],
|
||||
msgType = '',
|
||||
useSS = false,
|
||||
|
||||
@ -306,7 +306,7 @@ Include alerts, prompts & confirm boxes">Run with JS</button>
|
||||
<td>Edit the current bin</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/live</td>
|
||||
<td>/watch</td>
|
||||
<td>Follow a Code Casting session</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -318,7 +318,7 @@ Include alerts, prompts & confirm boxes">Run with JS</button>
|
||||
<td>Edit the last edited bin for this user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/{{#home}}{{home}}{{/home}}{{^home}}[username]{{/home}}/last/live</td>
|
||||
<td>/{{#home}}{{home}}{{/home}}{{^home}}[username]{{/home}}/last/watch</td>
|
||||
<td>Follow the Code Casting session for the latest bin for this user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user