mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 10:14:13 +02:00
cache busting remove extra quote
This commit is contained in:
parent
d0c1045550
commit
b0b3c0f3ed
3 changed files with 4 additions and 5 deletions
|
|
@ -14,11 +14,7 @@ macro_rules! saved_asset_url {
|
|||
|
||||
macro_rules! saved_asset_hash {
|
||||
($name:expr) => {
|
||||
concat!(
|
||||
r#"""#,
|
||||
include_str!(concat!(env!("OUT_DIR"), "/", $name, ".hash")),
|
||||
r#"""#
|
||||
)
|
||||
include_str!(concat!(env!("OUT_DIR"), "/", $name, ".hash"))
|
||||
};
|
||||
($name:expr, quoted) => {
|
||||
concat!(r#"""#, crate::asset::saved_asset_hash!($name), r#"""#)
|
||||
|
|
|
|||
|
|
@ -51,4 +51,5 @@ pub enum Listen {
|
|||
#[derive(Debug, Deserialize)]
|
||||
pub struct SiteConfig {
|
||||
pub url: String,
|
||||
pub api: String,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ pub type Result<T, E = Error> = std::result::Result<T, E>;
|
|||
struct App {
|
||||
connection: PgPool,
|
||||
openid: SteamOpenId,
|
||||
api: String,
|
||||
pub session_store: MemoryStore,
|
||||
}
|
||||
|
||||
|
|
@ -67,6 +68,7 @@ async fn main() -> Result<()> {
|
|||
connection,
|
||||
openid: SteamOpenId::new(&config.site.url, "/login/callback")
|
||||
.expect("invalid steam login url"),
|
||||
api: config.site.api,
|
||||
session_store: session_store.clone(),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue