Skip to content

Commit e134e62

Browse files
Update app.py
1 parent fcfe009 commit e134e62

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

app.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
from flask import Flask
2+
from flask_socketio import SocketIO, emit
3+
from flask_graphql import GraphQLView
4+
from flask_restful import Api
5+
from graphql import GraphQLSchema, GraphQLObjectType, GraphQLString
6+
import psycopg2
27

38
app = Flask(__name__)
9+
app.config['SECRET_KEY'] = 'your-secret-key'
10+
socketio = SocketIO(app)
11+
api = Api(app)
412

5-
@app.route('/')
6-
def hello():
7-
return 'Hello, World!'
13+
# Define GraphQL types and resolvers here
14+
# ...
15+
16+
# Define RESTful API resources here
17+
# ...

0 commit comments

Comments
 (0)