add SRI for other resources; add routing for all root requests

This commit is contained in:
kaysond 2021-11-29 19:55:48 -08:00 committed by nitnelave
parent c761f08995
commit e11a8460ff
3 changed files with 27 additions and 9 deletions

View File

@ -18,12 +18,19 @@
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
integrity="sha384-tKLJeE1ALTUwtXlaGjJYM3sejfssWdAaWR2s97axw4xkiAdMzQjtOjgcyw0Y50KU"
as="style" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" />
<link
rel="stylesheet"
href="/static/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/style.css">
</head>
<body>

View File

@ -13,11 +13,22 @@
<script
src="/static/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"></script>
<link rel="stylesheet" href="/static/bootstrap-icons.css" as="style" />
<link rel="stylesheet" href="/static/font-awesome.min.css">
<link
rel="stylesheet"
href="/static/bootstrap-icons.css"
integrity="sha384-tKLJeE1ALTUwtXlaGjJYM3sejfssWdAaWR2s97axw4xkiAdMzQjtOjgcyw0Y50KU"
as="style" />
<link
rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
href="/static/font-awesome.min.css" />
<link
rel="stylesheet"
href="/static/fonts.css" />
<link
rel="stylesheet"
href="/static/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/static/fonts.css" rel="stylesheet">
<link rel="stylesheet" href="/static/style.css">
</head>
<body>

View File

@ -78,7 +78,7 @@ fn http_config<Backend>(
.service(
web::scope("/")
.route("", web::get().to(index))
.route("index.html", web::get().to(index)),
.route(".*", web::get().to(index)),
);
}