feat: extend admin operations and media review
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
||||
@manifest path /site.webmanifest
|
||||
header @manifest Cache-Control "public, max-age=3600"
|
||||
|
||||
@admin path /admin/*
|
||||
@admin path /admin /admin/*
|
||||
handle @admin {
|
||||
basic_auth {
|
||||
{$ADMIN_BASIC_USER} {$ADMIN_BASIC_PASSWORD_HASH}
|
||||
|
||||
@@ -29,6 +29,8 @@ def probe(path, expected, authorization=None, method="GET", data=None):
|
||||
assert isinstance(json.load(response), dict)
|
||||
|
||||
|
||||
probe("/admin", 401)
|
||||
probe("/admin", 200, basic)
|
||||
probe("/admin/moderation", 401)
|
||||
probe("/admin/moderation", 200, basic)
|
||||
probe("/admin/moderation", 401, "Bearer " + token)
|
||||
|
||||
Reference in New Issue
Block a user