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:
parent
6a7f8b91ce
commit
9643cdd104
@ -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))
|
||||
})
|
||||
|
@ -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")]
|
Loading…
Reference in New Issue
Block a user