mirror of
https://github.com/kevin-DL/ShortMe-URL-Shortener.git
synced 2026-01-15 20:54:48 +00:00
Initial commit
This commit is contained in:
15
app/server/routes/your_api_token.py
Normal file
15
app/server/routes/your_api_token.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# ------- 3rd party imports -------
|
||||
from flask import Blueprint, render_template, request, url_for
|
||||
|
||||
your_api_token_blueprint = Blueprint('your_api_token_blueprint', __name__, template_folder='templates')
|
||||
|
||||
|
||||
@your_api_token_blueprint.route('/your_api_token')
|
||||
def your_api_token():
|
||||
auth_token = request.args.get("auth_token")
|
||||
|
||||
if auth_token:
|
||||
return render_template('your_api_token.html', auth_token=auth_token)
|
||||
|
||||
else:
|
||||
return render_template(url_for('page_not_found_blueprint.page_not_found'))
|
||||
Reference in New Issue
Block a user