Live now moved to "/watch"

This commit is contained in:
Remy Sharp 2012-07-08 00:09:23 +01:00
parent 4d79eae197
commit fc73f1525d
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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,

View File

@ -306,7 +306,7 @@ Include alerts, prompts &amp; 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 &amp; 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>