optimize imports
This commit is contained in:
parent
c865c09649
commit
8acb9a201d
@ -9,13 +9,12 @@
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
pub use log::{info, log, warn};
|
||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
||||
use log::debug;
|
||||
|
||||
pub use yggdrasil::*;
|
||||
use yggdrasil::*;
|
||||
|
||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||
info!("Loading nest");
|
||||
debug!("Loading nest");
|
||||
|
||||
let mut nest = tide::with_state(db.to_owned());
|
||||
|
||||
|
@ -9,13 +9,12 @@
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
pub use log::{info, log, warn};
|
||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
||||
use log::debug;
|
||||
|
||||
pub use yggdrasil::*;
|
||||
use yggdrasil::*;
|
||||
|
||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||
info!("Loading nest");
|
||||
debug!("Loading nest");
|
||||
|
||||
let mut nest = tide::with_state(db.to_owned());
|
||||
|
||||
|
@ -9,10 +9,9 @@
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
pub use log::{info, log, warn};
|
||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
||||
use log::debug;
|
||||
|
||||
pub use yggdrasil::*;
|
||||
use yggdrasil::*;
|
||||
|
||||
mod authenticate;
|
||||
mod invalidate;
|
||||
@ -21,7 +20,7 @@ mod signout;
|
||||
mod validate;
|
||||
|
||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||
info!("Loading nest");
|
||||
debug!("Loading nest");
|
||||
|
||||
let mut nest = tide::with_state(db);
|
||||
nest.at("authenticate").post(authenticate::authenticate);
|
||||
|
@ -9,13 +9,13 @@
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
pub use log::{info, log, warn};
|
||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
||||
use log::debug;
|
||||
use tide::{prelude::*, Request, Result};
|
||||
|
||||
pub use yggdrasil::*;
|
||||
use yggdrasil::*;
|
||||
|
||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||
info!("Loading nest");
|
||||
debug!("Loading nest");
|
||||
|
||||
let mut nest = tide::with_state(db.to_owned());
|
||||
|
||||
|
@ -10,17 +10,16 @@
|
||||
*/
|
||||
|
||||
|
||||
pub use log::{info, log, warn};
|
||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
||||
use log::debug;
|
||||
|
||||
pub use yggdrasil::*;
|
||||
use yggdrasil::*;
|
||||
|
||||
mod profile;
|
||||
mod skin;
|
||||
mod cape;
|
||||
|
||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||
info!("Loading nest");
|
||||
debug!("Loading nest");
|
||||
|
||||
let mut nest = tide::with_state(db);
|
||||
|
||||
|
@ -9,17 +9,16 @@
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
pub use log::{info, log, warn};
|
||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
||||
use log::debug;
|
||||
|
||||
pub use yggdrasil::*;
|
||||
use yggdrasil::*;
|
||||
|
||||
mod has_joined;
|
||||
mod join;
|
||||
mod profile;
|
||||
|
||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||
info!("Loading nest");
|
||||
debug!("Loading nest");
|
||||
|
||||
let mut nest = tide::with_state(db.to_owned());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user