implement profile search

This commit is contained in:
2021-07-05 18:54:25 +02:00
parent 980415bd20
commit 020edffec7
4 changed files with 75 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from flask import g, make_response, request, send_file
from functools import wraps
from ki.auth import auth
from ki.handlers import find_profiles as find_profiles_handler
from ki.handlers import update_profile as update_profile_handler
from ki.models import ContactType, Language, Skill, Token, User
from app import app
@ -143,6 +144,12 @@ def get_contacttypes():
return handle_completion_request(ContactType, "contacttypes")
@app.route("/users/profiles")
@token_auth
def find_profiles():
return find_profiles_handler()
@app.route("/skills")
@token_auth
def get_skills():