no more api/2

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2019-11-23 09:37:09 +03:00
parent a31d8b8963
commit 01478630e8
1 changed files with 1 additions and 3 deletions

4
ufw
View File

@ -51,7 +51,6 @@ usage() {
cfg_url_regex
cfg_tmp_dir
cfg_service_url
cfg_api_path
EOF
}
@ -263,7 +262,7 @@ get_my_ip() {
login() {
declare api_response
api_response=$( curl -sl "$cfg_service_url/$cfg_api_path/get_login_token?login=$login&format=json" )
api_response=$( curl -sl "$cfg_service_url/token_request.json?login=$login" )
if get_api_status <<< "$api_response"; then
printf 'Check your email.\n'
@ -325,7 +324,6 @@ main() {
cfg_service_url='https://8fw.me'
cfg_screenshot_ext='png'
cfg_max_filesize='200M'
cfg_api_path='/api/2'
flag_shortlink=0
flag_directlink=1