Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Omarabdul3ziz committed Nov 2, 2021
1 parent d92aab7 commit f751aac
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions services/server/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from flask import Flask
from flask_cors import CORS

import os
import os

from api import api
from auth import github_blueprint, auth_blueprint, tribot_bp, JWTManager
from auth import github_blueprint, auth_blueprint, tribot_bp, JWTManager
from model import DATABASE_URL


Expand All @@ -17,18 +17,18 @@

SECRET_KEY = os.getenv("SECRET_KEY")

app.config['SECRET_KEY'] = "SECRET_KEY"
app.config["SECRET_KEY"] = "SECRET_KEY"

app.config["MONGO_URI"] = DATABASE_URL

app.config["JWT_TOKEN_LOCATION"] = ["cookies"]
app.config["JWT_SECRET_KEY"] = SECRET_KEY # Change this in your code!
app.config['JWT_COOKIE_CSRF_PROTECT'] = False # to skip the missing token
app.config['JWT_ACCESS_TOKEN_EXPIRES'] = False
app.config['JWT_COOKIE_DOMAIN'] = 'dome.vue'
app.config["JWT_COOKIE_CSRF_PROTECT"] = False # to skip the missing token
app.config["JWT_ACCESS_TOKEN_EXPIRES"] = False
app.config["JWT_COOKIE_DOMAIN"] = "dome.vue"

api.init_app(app)

app.register_blueprint(github_blueprint, url_prefix='/login')
app.register_blueprint(auth_blueprint, url_prefix='/auth')
app.register_blueprint(tribot_bp, url_prefix='/3bot')
app.register_blueprint(github_blueprint, url_prefix="/login")
app.register_blueprint(auth_blueprint, url_prefix="/auth")
app.register_blueprint(tribot_bp, url_prefix="/3bot")

0 comments on commit f751aac

Please sign in to comment.