From bf1673dda1fd266393623b6b3237def4eeef5e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Gali=C4=87?= Date: Wed, 14 Aug 2019 23:44:24 +0200 Subject: [PATCH] start exploring some ideas for domain validation --- src/main.rs | 4 ++++ src/routes/blogs.rs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index f1c903dd..7ff67b41 100644 --- a/src/main.rs +++ b/src/main.rs @@ -206,6 +206,10 @@ Then try to restart Plume routes::search::custom::search, ], ) + .mount( + "/domain_validation/", + routes![routes::blogs::domain_validation,], + ) .mount( "/", routes![ diff --git a/src/routes/blogs.rs b/src/routes/blogs.rs index c5c15a83..8837640a 100644 --- a/src/routes/blogs.rs +++ b/src/routes/blogs.rs @@ -95,6 +95,11 @@ pub fn new(rockets: PlumeRocket, _user: User) -> Ructe { )) } +#[get("/validate/")] +pub fn validate(validation_id: String, rockets: PlumeRocket) -> Result { + unimplemented!("No idea what to do here yet") +} + pub mod custom { use plume_common::activity_pub::{ActivityStream, ApRequest}; use plume_models::{blogs::Blog, blogs::CustomGroup, blogs::Host, PlumeRocket};