Skip to content

Commit 493e219

Browse files
authored
Merge pull request airbnb#758 from airbnb/jg--update_website_updat
[kp]remove duplicated kp file
2 parents da3a448 + 125f9d2 commit 493e219

File tree

162 files changed

+47
-31398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+47
-31398
lines changed

knowledge_repo_v2/service/app.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from flask import Flask
2+
from flask_cors import CORS
3+
from flask_sqlalchemy import SQLAlchemy
4+
from flask_migrate import Migrate
5+
6+
7+
app = Flask(__name__)
8+
CORS(app)
9+
app.config.from_object("config.Config")
10+
db = SQLAlchemy(app)
11+
migrate = Migrate(app, db)
12+
13+
14+
@app.route("/")
15+
def hello():
16+
return "Hello, we are building knowledge repo v2!"
17+
18+
19+
# placeholder api to list all post in the landing page
20+
@app.route("/feed")
21+
def feed():
22+
return [{"title": "test", "content": "placeholder"}]
23+
24+
25+
if __name__ == "__main__":
26+
app.run(host="0.0.0.0", port=5050)

knowledge_repo_v2/service/app/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)