mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Refactor auth code
This commit is contained in:
@@ -241,12 +241,6 @@ const docTemplate = `{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Not authenticated",
|
||||
"name": "not_auth",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -458,7 +452,7 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Get m3u from last play",
|
||||
"description": "Get M3U from last played file",
|
||||
"name": "fromlast",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -475,17 +469,10 @@ const docTemplate = `{
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "File index in torrent",
|
||||
"name": "poster",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Set poster link of torrent",
|
||||
"name": "not_auth",
|
||||
"name": "poster",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
|
||||
@@ -234,12 +234,6 @@
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Not authenticated",
|
||||
"name": "not_auth",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -451,7 +445,7 @@
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Get m3u from last play",
|
||||
"description": "Get M3U from last played file",
|
||||
"name": "fromlast",
|
||||
"in": "query"
|
||||
},
|
||||
@@ -468,17 +462,10 @@
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "File index in torrent",
|
||||
"name": "poster",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Set poster link of torrent",
|
||||
"name": "not_auth",
|
||||
"name": "poster",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
|
||||
@@ -452,10 +452,6 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
- description: Not authenticated
|
||||
in: query
|
||||
name: not_auth
|
||||
type: boolean
|
||||
produces:
|
||||
- application/octet-stream
|
||||
responses:
|
||||
@@ -592,7 +588,7 @@ paths:
|
||||
in: query
|
||||
name: m3u
|
||||
type: string
|
||||
- description: Get m3u from last play
|
||||
- description: Get M3U from last played file
|
||||
in: query
|
||||
name: fromlast
|
||||
type: string
|
||||
@@ -605,14 +601,9 @@ paths:
|
||||
name: title
|
||||
required: true
|
||||
type: string
|
||||
- description: File index in torrent
|
||||
in: query
|
||||
name: poster
|
||||
required: true
|
||||
type: string
|
||||
- description: Set poster link of torrent
|
||||
in: query
|
||||
name: not_auth
|
||||
name: poster
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
|
||||
Reference in New Issue
Block a user