Basic blog creation

This commit is contained in:
Bat
2018-04-23 11:54:37 +01:00
parent 502c186f52
commit 9130f4d848
7 changed files with 88 additions and 1 deletions
+7 -1
View File
@@ -7,6 +7,7 @@ extern crate dotenv;
extern crate rocket;
extern crate rocket_contrib;
extern crate bcrypt;
extern crate heck;
use diesel::pg::PgConnection;
use diesel::r2d2::{ConnectionManager, Pool};
@@ -18,6 +19,7 @@ mod db_conn;
mod models;
mod schema;
mod routes;
mod utils;
use db_conn::DbConn;
use models::instance::*;
@@ -57,7 +59,11 @@ fn main() {
routes::user::create,
routes::session::new,
routes::session::create
routes::session::create,
routes::blogs::details,
routes::blogs::new,
routes::blogs::create,
])
.manage(init_pool())
.attach(Template::fairing())