so some weird glitch lol

5/14/2022

i just realized that you can go to /post/home its just the homepage. this is because the way my code works, which you can see here:


from flask import Flask, redirect, render_template

app = Flask('axolotl')


@app.route('/')
def hello_world():
  return render_template('home.html')


@app.route('/post/')
def send_post(thing):
  return render_template(f'{thing}.html')


app.run(host='0.0.0.0', port=8080)

it just returns a template, (and it kind of helps), but since the home page is in the templates folder, so yeahhhh

<- homepage