MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / get_session_id

Function get_session_id

api/app/api/routes.py:223–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221
222@bp.route('/session', methods=['POST'])
223def get_session_id():
224 # check the JSON
225 request_body = request.get_json()
226 user_id = request_body.get('user_id')
227 scope = request_body.get('scope', 'USA')
228 session = create_session(scope, user_id)
229 return make_response(jsonify({'session_id': session}), 200)

Callers

nothing calls this directly

Calls 1

create_sessionFunction · 0.85

Tested by

no test coverage detected