Remove remaining bits of web front-end

This commit is contained in:
Nathan Sobo 2022-04-21 09:30:08 -06:00
parent 9f83417b58
commit 0cf7bba483
6 changed files with 25 additions and 521 deletions

View file

@ -3,7 +3,6 @@ mod auth;
mod db;
mod env;
mod errors;
mod github;
mod rpc;
use ::rpc::Peer;
@ -84,13 +83,13 @@ pub async fn run_server(
rpc: Arc<Peer>,
listener: TcpListener,
) -> tide::Result<()> {
let mut app = tide::with_state(state.clone());
rpc::add_routes(&mut app, &rpc);
let mut web = tide::with_state(state.clone());
web.with(CompressMiddleware::new());
api::add_routes(&mut web);
let mut app = tide::with_state(state.clone());
rpc::add_routes(&mut app, &rpc);
app.at("/").nest(web);
app.listen(listener).await?;