Add get all users, auth
-import datetime
-
-from flask_jwt_extended import jwt_required
-from tensorhive.controllers.user.CreateUserController import CreateUserController
+from tensorhive.authorization import admin_required
from tensorhive.controllers.user.ListUsersController import ListUsersController
#TODO others controllers
-@jwt_required
+@admin_required
def search():
'''Get all users'''
return ListUsersController.get()
