Skip to content

Commit

Permalink
fix: rename service
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach committed Nov 20, 2023
1 parent e604955 commit bf1ff6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ARG python_version=3.9.18
FROM python:${python_version}-slim-bullseye AS build

WORKDIR /src

COPY requirements.txt /tmp/requirements.txt

RUN apt-get update && \
Expand Down
9 changes: 4 additions & 5 deletions src/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from apple import verify_attestation_statement
from goog import verify_integrity_token

app = Flask(__name__)
server = Flask(__name__)

nonce = secrets.token_hex(16)

Expand Down Expand Up @@ -97,7 +97,7 @@ def decode_base64_to_json(s):

return json_obj

@app.route('/topic/basicmessages/', methods=['POST'])
@server.route('/topic/basicmessages/', methods=['POST'])
def basicmessages():
print("Run POST /topic/basicmessages/")
message = request.get_json()
Expand All @@ -110,7 +110,7 @@ def basicmessages():

return make_response('', 204)

@app.route('/topic/connections/', methods=['POST'])
@server.route('/topic/connections/', methods=['POST'])
def connections():
print("Run POST /topic/connections/")

Expand All @@ -122,6 +122,5 @@ def connections():

return make_response('', 204)


if __name__ == '__main__':
app.run(debug=True)
server.run(debug=True)

0 comments on commit bf1ff6d

Please sign in to comment.