Squashed commit of the following: commit 7fe3e22f5e4108b5eb149abf8d608334debc49ca Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr> Date: Thu Sep 2 16:59:52 2021 +0200 [0.5.9] release commit c36c0fcc982388a5acf2f9f937fa8ab54a18f3de Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr> Date: Thu Sep 2 16:53:13 2021 +0200 [conf] fix #19 et ajout du test (test_dummy_project_router/test_get_config) configuration du domaine accessible depuis : l'attribut config de l'argument "halfapi" pour les fonctions request.scope['config'] pour les fonctions async commit cc235eee8c6f8f5d3606dda0f88156697eac296e Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr> Date: Thu Sep 2 14:59:17 2021 +0200 [tests] don't import click two times commit fa418478c76205bb407e536737d8e389b4bf391c Author: Maxime Alves LIRMM <maxime.alves@lirmm.fr> Date: Thu Sep 2 14:57:06 2021 +0200 [clean] remove unused variables, remove [] as default value in fct, raise from exc
12 lines
211 B
Python
12 lines
211 B
Python
from halfapi.lib import acl
|
|
import logging
|
|
logger = logging.getLogger('uvicorn.asgi')
|
|
|
|
ACLS = {
|
|
'GET' : [{'acl':acl.public}]
|
|
}
|
|
|
|
def get(halfapi):
|
|
logger.error('%s', halfapi)
|
|
return halfapi['config']
|