|
@@ -49,7 +49,7 @@ impl Service for App {
|
|
|
fn call(&mut self, req: Request) -> Self::Future {
|
|
|
let path = req.path();
|
|
|
match path {
|
|
|
- "/d" => {
|
|
|
+ "/db" => {
|
|
|
let h_srv = self.hdr_srv.clone();
|
|
|
let h_ct = self.hdr_ctjson.clone();
|
|
|
let fut = self.db.get_world();
|
|
@@ -63,7 +63,7 @@ impl Service for App {
|
|
|
Ok(res)
|
|
|
})
|
|
|
}
|
|
|
- "/f" => {
|
|
|
+ "/fortune" => {
|
|
|
let h_srv = self.hdr_srv.clone();
|
|
|
let h_ct = self.hdr_cthtml.clone();
|
|
|
let fut = self.db.tell_fortune();
|