Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
mini-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit da1847bc
authored
2019-11-22 11:55:38 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
First commit
1 parent
7c590f07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
deploy.py
deploy.py
View file @
da1847b
#-*- coding: utf-8 -*-
#-*- coding: utf-8 -*-
from
flask
import
Flask
,
json
,
request
from
flask
import
Flask
,
json
,
request
,
url_for
,
render_template
import
random
import
random
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
...
@@ -54,5 +54,9 @@ def login():
...
@@ -54,5 +54,9 @@ def login():
"token"
:
None
"token"
:
None
})
})
@app.route
(
'/'
,
methods
=
[
'GET'
])
def
main
():
return
render_template
(
"generate.html"
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
app
.
run
(
"0.0.0.0"
)
app
.
run
(
"0.0.0.0"
)
\ No newline at end of file
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment