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/>.
|
* 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};
|
use log::debug;
|
||||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
|
||||||
|
|
||||||
pub use yggdrasil::*;
|
use yggdrasil::*;
|
||||||
|
|
||||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||||
info!("Loading nest");
|
debug!("Loading nest");
|
||||||
|
|
||||||
let mut nest = tide::with_state(db.to_owned());
|
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/>.
|
* 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};
|
use log::debug;
|
||||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
|
||||||
|
|
||||||
pub use yggdrasil::*;
|
use yggdrasil::*;
|
||||||
|
|
||||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||||
info!("Loading nest");
|
debug!("Loading nest");
|
||||||
|
|
||||||
let mut nest = tide::with_state(db.to_owned());
|
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/>.
|
* 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};
|
use log::debug;
|
||||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
|
||||||
|
|
||||||
pub use yggdrasil::*;
|
use yggdrasil::*;
|
||||||
|
|
||||||
mod authenticate;
|
mod authenticate;
|
||||||
mod invalidate;
|
mod invalidate;
|
||||||
@ -21,7 +20,7 @@ mod signout;
|
|||||||
mod validate;
|
mod validate;
|
||||||
|
|
||||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||||
info!("Loading nest");
|
debug!("Loading nest");
|
||||||
|
|
||||||
let mut nest = tide::with_state(db);
|
let mut nest = tide::with_state(db);
|
||||||
nest.at("authenticate").post(authenticate::authenticate);
|
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/>.
|
* 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};
|
use log::debug;
|
||||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
use tide::{prelude::*, Request, Result};
|
||||||
|
|
||||||
pub use yggdrasil::*;
|
use yggdrasil::*;
|
||||||
|
|
||||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||||
info!("Loading nest");
|
debug!("Loading nest");
|
||||||
|
|
||||||
let mut nest = tide::with_state(db.to_owned());
|
let mut nest = tide::with_state(db.to_owned());
|
||||||
|
|
||||||
|
@ -10,17 +10,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
pub use log::{info, log, warn};
|
use log::debug;
|
||||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
|
||||||
|
|
||||||
pub use yggdrasil::*;
|
use yggdrasil::*;
|
||||||
|
|
||||||
mod profile;
|
mod profile;
|
||||||
mod skin;
|
mod skin;
|
||||||
mod cape;
|
mod cape;
|
||||||
|
|
||||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||||
info!("Loading nest");
|
debug!("Loading nest");
|
||||||
|
|
||||||
let mut nest = tide::with_state(db);
|
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/>.
|
* 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};
|
use log::debug;
|
||||||
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
|
|
||||||
|
|
||||||
pub use yggdrasil::*;
|
use yggdrasil::*;
|
||||||
|
|
||||||
mod has_joined;
|
mod has_joined;
|
||||||
mod join;
|
mod join;
|
||||||
mod profile;
|
mod profile;
|
||||||
|
|
||||||
pub fn nest(db: Database) -> tide::Server<Database> {
|
pub fn nest(db: Database) -> tide::Server<Database> {
|
||||||
info!("Loading nest");
|
debug!("Loading nest");
|
||||||
|
|
||||||
let mut nest = tide::with_state(db.to_owned());
|
let mut nest = tide::with_state(db.to_owned());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user