Added working WTForm to get URL at /downloader
This commit is contained in:
7
forms/download.py
Normal file
7
forms/download.py
Normal 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()])
|
||||
Reference in New Issue
Block a user