fixing root route and html title

master
vuko 2020-05-31 15:14:49 +02:00
parent a425964e4a
commit 7598b23dc6
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<title>SMD Resistors</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style type="text/css">
.compartment {

View File

@ -1,4 +1,4 @@
from flask import Flask, Response, jsonify
from flask import Flask
from .spaceventory import Inventory
from .resistors_boxall import fetch_resistors, render
import os
@ -7,6 +7,7 @@ import os
def app():
app = Flask(__name__)
@app.route("/")
@app.route("/index.html")
def resistors():
token = os.environ.get("INVENTORY_TOKEN", None)