[routes] Add halfapi routes in production.
This commit is contained in:
parent
b89e03746f
commit
31878d971e
@ -28,7 +28,6 @@ Only debug or doc routes, that should not be available in production
|
|||||||
routes = [ Route('/', get_api_routes) ]
|
routes = [ Route('/', get_api_routes) ]
|
||||||
|
|
||||||
|
|
||||||
if not PRODUCTION:
|
|
||||||
routes += [
|
routes += [
|
||||||
Route('/halfapi/current_user', lambda request, *args, **kwargs:
|
Route('/halfapi/current_user', lambda request, *args, **kwargs:
|
||||||
ORJSONResponse({'user':request.user.json})
|
ORJSONResponse({'user':request.user.json})
|
||||||
|
Loading…
Reference in New Issue
Block a user