chore(cli): only load url from globals data
This commit is contained in:
parent
3d20361355
commit
fdd556df83
6 changed files with 25 additions and 23 deletions
|
@ -21,7 +21,7 @@ export const runJobsMenu = async () => {
|
|||
{
|
||||
name: '💿 Scrobble listens from Navidrome',
|
||||
type: 'curl',
|
||||
apiUrl: `${config.globals.url}/api/scrobble.php`,
|
||||
apiUrl: `${config.url}/api/scrobble.php`,
|
||||
tokenEnvVar: 'NAVIDROME_SCROBBLE_TOKEN',
|
||||
method: 'POST'
|
||||
},
|
||||
|
@ -35,14 +35,14 @@ export const runJobsMenu = async () => {
|
|||
{
|
||||
name: '🐘 Send posts to Mastodon',
|
||||
type: 'curl',
|
||||
apiUrl: `${config.globals.url}/api/mastodon.php`,
|
||||
apiUrl: `${config.url}/api/mastodon.php`,
|
||||
tokenEnvVar: 'MASTODON_SYNDICATION_TOKEN',
|
||||
method: 'POST'
|
||||
},
|
||||
{
|
||||
name: '🎤 Import artist from Navidrome',
|
||||
type: 'curl',
|
||||
apiUrl: `${config.globals.url}/api/artist-import.php`,
|
||||
apiUrl: `${config.url}/api/artist-import.php`,
|
||||
tokenEnvVar: 'ARTIST_IMPORT_TOKEN',
|
||||
method: 'POST',
|
||||
paramsPrompt: [{
|
||||
|
@ -55,7 +55,7 @@ export const runJobsMenu = async () => {
|
|||
{
|
||||
name: '📖 Import book',
|
||||
type: 'curl',
|
||||
apiUrl: `${config.globals.url}/api/book-import.php`,
|
||||
apiUrl: `${config.url}/api/book-import.php`,
|
||||
tokenEnvVar: 'BOOK_IMPORT_TOKEN',
|
||||
method: 'POST',
|
||||
paramsPrompt: [{
|
||||
|
@ -68,7 +68,7 @@ export const runJobsMenu = async () => {
|
|||
{
|
||||
name: '📽 Import movie or show',
|
||||
type: 'curl',
|
||||
apiUrl: `${config.globals.url}/api/watching-import.php`,
|
||||
apiUrl: `${config.url}/api/watching-import.php`,
|
||||
tokenEnvVar: 'WATCHING_IMPORT_TOKEN',
|
||||
method: 'POST',
|
||||
tokenIncludeInParams: true,
|
||||
|
@ -89,7 +89,7 @@ export const runJobsMenu = async () => {
|
|||
{
|
||||
name: '📺 Import upcoming TV seasons',
|
||||
type: 'curl',
|
||||
apiUrl: `${config.globals.url}/api/seasons-import.php`,
|
||||
apiUrl: `${config.url}/api/seasons-import.php`,
|
||||
tokenEnvVar: 'SEASONS_IMPORT_TOKEN',
|
||||
method: 'POST'
|
||||
}];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue