#!/usr/bin/env python3

import io
import os
import argparse
import zipfile

from flask import Blueprint, send_file, render_template, redirect, request
from flask_login import current_user
from ..error import error_handler, logger, getHTMLErrorString
from ..html_generator import make_top_bar

bp = Blueprint("rcm", __name__,)

@bp.route('/rcm/', methods = ['GET' , 'POST'])
def rcm():
	return render_template("tools/rcm.html",
		pagetitle = "Web RCM Injector",
		title = "Web RCM Injector",
		subtitle = "RCM Injector for Nintendo Switch",
		navbar = make_top_bar(current_user),
		current_user = current_user,
	)


def register(app):
	app.register_blueprint(bp)