forked from cadey/maj
more words
This commit is contained in:
parent
2c2fc3ee09
commit
0ffd86c9f6
|
@ -1,13 +1,13 @@
|
|||
use async_std::task;
|
||||
use maj::{
|
||||
gemini::Builder,
|
||||
gemini::{Builder, Node},
|
||||
route, seg,
|
||||
server::{Error, Handler as MajHandler, Request},
|
||||
split, Response,
|
||||
};
|
||||
use percent_encoding::percent_decode_str;
|
||||
use rustls::internal::pemfile::{certs, rsa_private_keys};
|
||||
use rustls::{
|
||||
internal::pemfile::{certs, rsa_private_keys},
|
||||
AllowAnyAnonymousOrAuthenticatedClient, Certificate, PrivateKey, RootCertStore, ServerConfig,
|
||||
};
|
||||
use std::fs::File;
|
||||
|
@ -121,7 +121,7 @@ async fn input(req: Request) -> Result<Response, Error> {
|
|||
match req.url.query() {
|
||||
None => Ok(Response::input("test")),
|
||||
Some(q) => Ok({
|
||||
use maj::gemini::Node::{self, *};
|
||||
use Node::*;
|
||||
let result = vec![
|
||||
Heading {
|
||||
level: 1,
|
||||
|
@ -139,7 +139,7 @@ async fn input(req: Request) -> Result<Response, Error> {
|
|||
|
||||
async fn user(name: String) -> Result<Response, Error> {
|
||||
Ok(Response::render({
|
||||
use maj::gemini::Node::{self, *};
|
||||
use Node::*;
|
||||
|
||||
vec![
|
||||
Heading {
|
||||
|
|
Loading…
Reference in New Issue