mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Remove all remaining "$ " prefixes from docs, closes #2140
Also document sqlite-utils create-view
This commit is contained in:
parent
4535568f2c
commit
943df09dcc
14 changed files with 108 additions and 41 deletions
|
|
@ -1042,7 +1042,7 @@ Here's an example that authenticates the actor based on an incoming API key:
|
|||
|
||||
If you install this in your plugins directory you can test it like this::
|
||||
|
||||
$ curl -H 'Authorization: Bearer this-is-a-secret' http://localhost:8003/-/actor.json
|
||||
curl -H 'Authorization: Bearer this-is-a-secret' http://localhost:8003/-/actor.json
|
||||
|
||||
Instead of returning a dictionary, this function can return an awaitable function which itself returns either ``None`` or a dictionary. This is useful for authentication functions that need to make a database query - for example:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue