Skip to content

Commit

Permalink
Update API URL and add new dependencies for authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
upayanmazumder committed Nov 29, 2024
1 parent 69ff616 commit 97f198d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CLI/cas/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def add_message(message):
print("Error: User is not logged in. Please log in first.")
return

api_url = "https://api.cas.upayan.dev/add-message" # Replace with your API's URL
api_url = "https://api.cas.upayan.dev/add-message"
headers = {"Authorization": session_details["token"]}
payload = {"message": message}

Expand Down
3 changes: 2 additions & 1 deletion CLI/cas/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
argparse
flask
auth
requests
2 changes: 1 addition & 1 deletion CLI/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.7"
dependencies = ["requests","argparse"]
dependencies = ["requests","argparse","auth"]

[project.scripts]
cas = "cas.cli:main"

0 comments on commit 97f198d

Please sign in to comment.