* fx image build, build a function into a image which a API service handle with function * fx image export, export service into a directory, for easy debug, we can just go the directory to do everything with Docker cli
8 lines
161 B
Python
Vendored
8 lines
161 B
Python
Vendored
from fx import fx
|
|
from flask import Flask, request, jsonify
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/', methods=['POST', 'GET'])
|
|
def handle():
|
|
return fx(request)
|