Compare commits
3 Commits
228f7129d1
...
4089eca884
Author | SHA1 | Date |
---|---|---|
Anna | 4089eca884 | |
Anna | 7f7ea80a3d | |
Anna | 14602cc5b7 |
|
@ -86,6 +86,9 @@ internal class QuestionsTab {
|
|||
return;
|
||||
}
|
||||
|
||||
ImGui.PushTextWrapPos();
|
||||
using var pop = new OnDispose(ImGui.PopTextWrapPos);
|
||||
|
||||
foreach (var question in this.Plugin.Manager) {
|
||||
if (question.Active || question is not FullQuestion full) {
|
||||
continue;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,7 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
axum = { version = "0.6", features = ["json"] }
|
||||
axum = { version = "0.7", features = ["json"] }
|
||||
blake3 = { version = "1", features = ["traits-preview"] }
|
||||
chrono = { version = "0.4", features = ["serde"]}
|
||||
mimalloc = "0.1"
|
||||
|
|
|
@ -63,15 +63,13 @@ async fn main() -> Result<()> {
|
|||
.route("/questions", get(get_data))
|
||||
.route("/question/:id/breakdown/:stat", get(stat_breakdown))
|
||||
.route("/vote", post(vote))
|
||||
// .route("/question")
|
||||
.with_state(Arc::new(AppState {
|
||||
config,
|
||||
pool,
|
||||
}));
|
||||
|
||||
axum::Server::bind(&address)
|
||||
.serve(app.into_make_service())
|
||||
.await?;
|
||||
let listener = tokio::net::TcpListener::bind(&address).await?;
|
||||
axum::serve(listener, app).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue