Skip to content

Commit

Permalink
chore(justfile): add block api
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Sep 26, 2024
1 parent 0f8ffb7 commit 1a638a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ _account method name:
-H "Content-Type: application/json" \
-d "{\"name\": \"{{name}}\"}"

# /api/v0/admin/block-url
block-url url:
curl -X POST "http://localhost:${HATSU_LISTEN_PORT}/api/v0/admin/block-url?url={{url}}&token=${HATSU_ACCESS_TOKEN}"

# /api/v0/admin/unblock-url
unblock-url url:
curl -X POST "http://localhost:${HATSU_LISTEN_PORT}/api/v0/admin/unblock-url?url={{url}}&token=${HATSU_ACCESS_TOKEN}"

# use db_* without underscores.
db *args='migration up':
just db_{{args}}
Expand Down

0 comments on commit 1a638a8

Please sign in to comment.