forked from kompetenzinventar/ki-backend
implement profile search
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user