-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #15 from kilerhg/lna/refactor"
This reverts commit f30ada5.
- Loading branch information
Showing
42 changed files
with
45 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: gunicorn app.main:create_app | ||
web: gunicorn app:app |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from flask import Flask, render_template, redirect, url_for, request | ||
import requests | ||
|
||
import funcoes | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
def index(): | ||
return render_template('index.html') | ||
|
||
@app.route("/busca", methods=["GET", "POST"]) | ||
def search(): | ||
lista_livros = [] | ||
if request.method == "POST": | ||
livro = request.form["book_name"] | ||
lista_livros = funcoes.search_book(busca=livro) | ||
return render_template('search.html', books=lista_livros) | ||
|
||
@app.route("/biblioteca") | ||
def library(): | ||
return render_template('library.html') | ||
|
||
@app.route("/biblioteca/<int:isbn>") | ||
def add_book_library(isbn): | ||
print(isbn) | ||
return render_template('library.html') | ||
|
||
@app.route("/cadastrar") | ||
def register(): | ||
return "Aba cadastrar" | ||
|
||
@app.route("/login") | ||
def login(): | ||
return "Aba login" | ||
|
||
@app.route("/logout") | ||
def log_out(): | ||
return "Aba logout" | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run(debug=True) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.