<s> import sys <EOL> import os <EOL> from flask import Flask <EOL> root = os . path . abspath ( os . path . join ( os . path . dirname ( os . path . abspath ( __file__ ) ) , <EOL> '<STR_LIT>' ) ) <EOL> sys . path . append ( root ) <EOL> from simpleapi import Route <EOL> from handlers import MyAPI <EOL> app = Flask ( __name__ ) <EOL> app . route ( '<STR_LIT>' , methods = [ '<STR_LIT:GET>' , '<STR_LIT:POST>' ] ) ( Route ( MyAPI , framework = '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . run ( debug = True ) </s>
