mirror of https://github.com/sualko/cloud_bbb
parent
6f2dac8b0b
commit
a888627e14
|
@ -5,7 +5,7 @@ return [
|
|||
'room_api' => ['url' => '/api/0.1/rooms']
|
||||
],
|
||||
'routes' => [
|
||||
['name' => 'join#index', 'url' => '/{token}', 'verb' => 'GET', 'requirements' => array('token' => '\w[16,]')],
|
||||
['name' => 'join#index', 'url' => '/b/{token}', 'verb' => 'GET'],
|
||||
['name' => 'room_api#preflighted_cors', 'url' => '/api/0.1/{path}',
|
||||
'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']]
|
||||
]
|
||||
|
|
|
@ -73,12 +73,12 @@ const RoomRow: React.FC<Props> = (props) => {
|
|||
return (
|
||||
<tr key={room.id}>
|
||||
<td className="share icon-col">
|
||||
<CopyToClipboard text={window.location.origin + api.getUrl(`${room.uid}`)}>
|
||||
<CopyToClipboard text={window.location.origin + api.getUrl(`b/${room.uid}`)}>
|
||||
<span className="icon icon-clippy icon-visible copy-to-clipboard" ></span>
|
||||
</CopyToClipboard>
|
||||
</td>
|
||||
<td className="start icon-col">
|
||||
<a href={api.getUrl(`${room.uid}`)} className="icon icon-play icon-visible" target="_blank" rel="noopener noreferrer"></a>
|
||||
<a href={api.getUrl(`b/${room.uid}`)} className="icon icon-play icon-visible" target="_blank" rel="noopener noreferrer"></a>
|
||||
</td>
|
||||
<td className="name">
|
||||
{edit('name')}
|
||||
|
|
|
@ -51,7 +51,7 @@ $(() => {
|
|||
async function share(path: string, filename: string, roomUid) {
|
||||
const id = await createShare(path);
|
||||
const shareUrl = await configureShare(id);
|
||||
const joinUrl = generateUrl('/apps/bbb/{uid}?u={url}&filename={filename}', {
|
||||
const joinUrl = generateUrl('/apps/bbb/b/{uid}?u={url}&filename={filename}', {
|
||||
uid: roomUid,
|
||||
url: shareUrl + '/download',
|
||||
filename
|
||||
|
|
Loading…
Reference in New Issue