fix org-agenda-api container startup

This commit is contained in:
2026-03-25 11:45:55 -07:00
committed by Kat Huang
parent 6a64103569
commit 65d1967d94
3 changed files with 30 additions and 10 deletions

View File

@@ -5,23 +5,23 @@ user := "imalison"
# Get all todos
get-all-todos:
@curl -s -u "{{user}}:$(pass show org-agenda-api/imalison | head -1)" "{{base_url}}/get-all-todos" | jq . # gitleaks:allow
@curl -s -u "{{user}}:$(pass show org-agenda-api-imalison | head -1)" "{{base_url}}/get-all-todos" | jq . # gitleaks:allow
# Get today's agenda
get-todays-agenda:
@curl -s -u "{{user}}:$(pass show org-agenda-api/imalison | head -1)" "{{base_url}}/get-todays-agenda" | jq . # gitleaks:allow
@curl -s -u "{{user}}:$(pass show org-agenda-api-imalison | head -1)" "{{base_url}}/get-todays-agenda" | jq . # gitleaks:allow
# Get agenda (day view)
agenda:
@curl -s -u "{{user}}:$(pass show org-agenda-api/imalison | head -1)" "{{base_url}}/agenda" | jq . # gitleaks:allow
@curl -s -u "{{user}}:$(pass show org-agenda-api-imalison | head -1)" "{{base_url}}/agenda" | jq . # gitleaks:allow
# Get agenda files
agenda-files:
@curl -s -u "{{user}}:$(pass show org-agenda-api/imalison | head -1)" "{{base_url}}/agenda-files" | jq . # gitleaks:allow
@curl -s -u "{{user}}:$(pass show org-agenda-api-imalison | head -1)" "{{base_url}}/agenda-files" | jq . # gitleaks:allow
# Get todo states
todo-states:
@curl -s -u "{{user}}:$(pass show org-agenda-api/imalison | head -1)" "{{base_url}}/todo-states" | jq . # gitleaks:allow
@curl -s -u "{{user}}:$(pass show org-agenda-api-imalison | head -1)" "{{base_url}}/todo-states" | jq . # gitleaks:allow
# Health check
health:
@@ -30,7 +30,7 @@ health:
# Create a todo
create-todo title:
# gitleaks:allow
@curl -s -X POST -u "{{user}}:$(pass show org-agenda-api/imalison | head -1)" \
@curl -s -X POST -u "{{user}}:$(pass show org-agenda-api-imalison | head -1)" \
-H "Content-Type: application/json" \
-d '{"title": "{{title}}"}' \
"{{base_url}}/create-todo" | jq .