[routes] Add halfapi routes in production.

This commit is contained in:
Joël Maïzi 2020-09-30 10:31:52 +02:00
parent b89e03746f
commit 31878d971e

View File

@ -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})