share-lt/cmd/curl_get_entries_anon.sh
Jon Brookes 1a22fd156d feat/docker-compose-update (#18)
Co-authored-by: jon brookes <marshyon@gmail.com>
Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/18
2026-02-08 18:04:18 +01:00

12 lines
282 B
Bash
Executable file

#!/usr/bin/env bash
# this should fail, no token provided
# users need to be authenticated and have been
# granted access to view entries by being given
# a token
URL="${ADDRESS:-http://127.0.0.1:8000/api/entries}"
curl -s -X GET \
-H "Accept: application/json" \
$URL