mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
remote unnecessary urls; dynamic urls should work now
This commit is contained in:
1 parent
4278e70442
commit
9fde197164
2 files changed
+1
-9
No files matched your search
@@ -32,7 +32,7 @@ voices = [
|
||||
|
||||
# Patreon Gets Everything
|
||||
[[bonus_endpoints]]
|
||||
http_endpoint = "patreon_thanks"
|
||||
http_endpoint = "patreon-thanks"
|
||||
voices = [
|
||||
"hank-hill",
|
||||
"knuckles",
|
||||
|
||||
@@ -410,15 +410,8 @@ async fn run_server(app_state: AppState, server_args: ServerArgs) -> std::io::Re
|
||||
.service(Files::new("/adminui", admin_asset_directory.clone())
|
||||
.index_file("index.html"))
|
||||
// Early access static path for assets
|
||||
.service(Files::new("/early_access", patreon_asset_directory.clone())
|
||||
.index_file("FAKE_INDEX.HTML"))
|
||||
.service(Files::new("/static", static_asset_directory.clone())
|
||||
.index_file("FAKE_INDEX.HTML"))
|
||||
// Twitch and patreon
|
||||
.service(Files::new("/patreon-thanks", patreon_asset_directory.clone())
|
||||
.index_file("index.html"))
|
||||
.service(Files::new(&early_access_url, twitch_asset_directory.clone())
|
||||
.index_file("index.html"))
|
||||
.service(
|
||||
web::resource("/advanced_tts")
|
||||
.route(web::post().to(post_tts))
|
||||
@@ -446,7 +439,6 @@ async fn run_server(app_state: AppState, server_args: ServerArgs) -> std::io::Re
|
||||
.service(get_dynamic_early_access_speakers)
|
||||
.service(get_words);
|
||||
|
||||
println!("{:?}", &twitch_asset_directory);
|
||||
for key in bonus_urls.iter() {
|
||||
let url = format!("/{}", key);
|
||||
app = app.service(Files::new(&url, twitch_asset_directory.clone())
|
||||
|
||||
Reference in new issue
Block a user