Renamed some files due to unclear naming in the first place

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2021-06-10 22:22:31 +02:00
parent 6a7f8b91ce
commit 9643cdd104
3 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ extern crate actix_web;
mod schema;
mod model;
mod route;
mod lib;
mod routes;
mod db;
use actix_web::{App, HttpServer, Responder, web, HttpResponse};
use std::env;
@ -32,7 +32,7 @@ async fn main() -> std::io::Result<()> {
println!("Server will be listening: {}", server_string);
HttpServer::new(|| {
App::new().service(web::scope("/v1")
.configure(route::init_routes)
.configure(routes::init_routes)
)
.route("/health", web::get().to(health))
})

View File

@ -3,7 +3,7 @@ extern crate diesel;
use actix_web::{get, web, HttpResponse, Responder};
use crate::diesel::prelude::*;
use crate::lib::establish_connection;
use crate::db::establish_connection;
use crate::model::*;
#[get("/subtitles/list")]