channge % format to str.format()
change regex pattern .* to https://[^/]+
add test
endpoint enable with cli like usage