def __init__(self, config_path):
<EOL>self.config = configparser.SafeConfigParser()<EOL>self.config.read(config_path)<EOL>self.sq = SharQ(config_path)<EOL>self.app = Flask(__name__)<EOL>self.app.add_url_rule(<EOL>'<STR_LIT:/>', view_func=self._view_index, methods=['<STR_LIT:GET>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>',<EOL>view_func=self._view_enqueue, methods=['<STR_LIT:POST>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>', defaults={'<STR_LIT>': '<STR_LIT:default>'},<EOL>view_func=self._view_dequeue, methods=['<STR_LIT:GET>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>',<EOL>view_func=self._view_dequeue, methods=['<STR_LIT:GET>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>',<EOL>view_func=self._view_finish, methods=['<STR_LIT:POST>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>',<EOL>view_func=self._view_interval, methods=['<STR_LIT:POST>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>', defaults={'<STR_LIT>': None, '<STR_LIT>': None},<EOL>view_func=self._view_metrics, methods=['<STR_LIT:GET>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>', defaults={'<STR_LIT>': None},<EOL>view_func=self._view_metrics, methods=['<STR_LIT:GET>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>',<EOL>view_func=self._view_metrics, methods=['<STR_LIT:GET>'])<EOL>self.app.add_url_rule(<EOL>'<STR_LIT>',<EOL>view_func=self._view_clear_queue, methods=['<STR_LIT>'])<EOL>
Load the SharQ config and define the routes.