Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KS Pardubický kraj
cf-online-api
Commits
30b64306
Verified
Commit
30b64306
authored
4 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Generator jitsi url
parent
23da1a57
No related branches found
No related tags found
No related merge requests found
Pipeline
#1984
passed
4 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
lib/CF/Controller/Jitsi.pm
+24
-0
24 additions, 0 deletions
lib/CF/Controller/Jitsi.pm
openapi.yaml
+39
-1
39 additions, 1 deletion
openapi.yaml
with
64 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
1
View file @
30b64306
...
@@ -3,7 +3,7 @@ image: docker:19.03.1
...
@@ -3,7 +3,7 @@ image: docker:19.03.1
variables
:
variables
:
DOCKER_TLS_CERTDIR
:
"
/certs"
DOCKER_TLS_CERTDIR
:
"
/certs"
IMAGE_TAG
:
$CI_REGISTRY_IMAGE
IMAGE_TAG
:
$CI_REGISTRY_IMAGE
IMAGE_VER
:
1.
3
.0
IMAGE_VER
:
1.
4
.0
services
:
services
:
-
docker:19.03.1-dind
-
docker:19.03.1-dind
...
...
This diff is collapsed.
Click to expand it.
lib/CF/Controller/Jitsi.pm
0 → 100644
+
24
−
0
View file @
30b64306
package
CF::Controller::
Jitsi
;
use
Mojo::
Base
'
Mojolicious::Controller
';
use
feature
'
signatures
';
no
warnings
qw{ experimental::signatures }
;
sub
url
($c) {
$c
->
openapi
->
valid_input
or
return
;
my
$args
=
$c
->
req
->
json
;
$c
->
render
(
status
=>
200
,
openapi
=>
{
url
=>
$c
->
jitsi_url
(
$args
->
{
room
}
//
$c
->
cfg
->
{
jitsi_room
},
$args
->
{
token_lifetime
}
//
$c
->
cfg
->
{
jitsi_token_lifetime
},
%
{
$args
},
)
},
);
};
1
;
This diff is collapsed.
Click to expand it.
openapi.yaml
+
39
−
1
View file @
30b64306
openapi
:
3.0.3
openapi
:
3.0.3
info
:
info
:
version
:
0.1
.0
version
:
1.4
.0
title
:
CF Online
title
:
CF Online
description
:
CF Online
description
:
CF Online
license
:
license
:
...
@@ -588,3 +588,41 @@ paths:
...
@@ -588,3 +588,41 @@ paths:
204
:
204
:
description
:
Status changed
description
:
Status changed
/jitsi/url
:
post
:
x-mojo-to
:
jitsi#url
security
:
-
Bearer
:
[
'
chairman'
]
tags
:
-
jitsi
summary
:
"
Vygenerovat
odkaz
pro
jitsi"
operationId
:
jitsiUrl
requestBody
:
content
:
application/json
:
schema
:
type
:
object
properties
:
name
:
type
:
string
email
:
type
:
string
avatar
:
type
:
string
room
:
type
:
string
token_lifetime
:
type
:
integer
required
:
-
name
responses
:
200
:
description
:
Jitsi url
content
:
application/json
:
schema
:
type
:
object
properties
:
url
:
type
:
string
description
:
Jitsi meet url
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment