Added working WTForm to get URL at /downloader

This commit is contained in:
Maximilian Wagner
2023-07-30 13:59:11 +02:00
parent 1f070ece5d
commit 62ab798e7c
4 changed files with 36 additions and 18 deletions

7
forms/download.py Normal file
View File

@@ -0,0 +1,7 @@
from flask_wtf import FlaskForm
from wtforms import URLField
from wtforms.validators import URL, DataRequired
class DownloadForm(FlaskForm):
url = URLField('url', validators=[DataRequired(), URL()])