Skip to content

Commit

Permalink
api: remove login route
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Feb 6, 2021
1 parent b06505d commit 6cc5842
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mpcontribs-api/mpcontribs/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def healthcheck():
return "OK"


def login():
def get_consumer():
groups = request.headers.get("X-Authenticated-Groups", "").split(",")
groups += request.headers.get("X-Consumer-Groups", "").split(",")
return {
Expand Down Expand Up @@ -184,6 +184,5 @@ def create_app():

app.register_blueprint(sse, url_prefix="/stream")
app.add_url_rule("/healthcheck", view_func=healthcheck)
app.add_url_rule("/login", view_func=login)
logger.warning("app created.")
return app

0 comments on commit 6cc5842

Please sign in to comment.