Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-dhanraj-TI committed May 26, 2022
1 parent 6724bf5 commit e570521
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flaskenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FLASK_APP=api.py
FLASK_ENV=development
8 changes: 8 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import time
from flask import Flask
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
@app.route('/time')
def get_current_time():
return {'time': time.time()}

0 comments on commit e570521

Please sign in to comment.