Skip to content

Commit a9c1f55

Browse files
committed
Home page
1 parent b59305c commit a9c1f55

File tree

121 files changed

+7461
-18540
lines changed

Some content is hidden

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

121 files changed

+7461
-18540
lines changed

app.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
from flask_cors import CORS, cross_origin
44
import os
55

6-
app = Flask(__name__, static_url_path='')
6+
app = Flask(__name__)
77
CORS(app)
88

9-
@app.route('/')
10-
@cross_origin()
11-
def index():
12-
return redirect(url_for('blog'))
9+
10+
@app.route('/', defaults={'path': 'index.html'})
11+
@app.route('/<path:path>')
12+
def index(path):
13+
file_path = os.path.join('home/public', path)
14+
if os.path.isfile(file_path):
15+
return send_from_directory('home/public', path)
16+
elif os.path.isdir(file_path):
17+
return send_from_directory(file_path, 'index.html')
18+
else:
19+
return abort(404)
1320

1421

1522
@app.route('/resume')

client/.gitignore

-24
This file was deleted.

client/README.md

-70
This file was deleted.

0 commit comments

Comments
 (0)