podman engine setp ide folder
This commit is contained in:
@@ -1,26 +1,32 @@
|
||||
#![feature(proc_macro_hygiene, decl_macro)]
|
||||
extern crate rocket;
|
||||
#[macro_use] extern crate rocket_okapi;
|
||||
extern crate okapi;
|
||||
#[macro_use]
|
||||
extern crate rocket_okapi;
|
||||
extern crate nixideserver_lib;
|
||||
extern crate nixideserver_podman_lib;
|
||||
extern crate okapi;
|
||||
|
||||
use rocket_okapi::{
|
||||
swagger_ui::*,
|
||||
};
|
||||
use nixideserver_podman_lib::PodmanEngine;
|
||||
use rocket_okapi::swagger_ui::*;
|
||||
use std::env;
|
||||
|
||||
use nixideserver_lib::*;
|
||||
fn main() {
|
||||
let eng = DummyEngine{};
|
||||
let eng = DummyEngine {};
|
||||
let _podman_eng = PodmanEngine::new(env::current_dir().unwrap());
|
||||
let exectuor = NixIdeManageService::new(Box::new(eng));
|
||||
rocket::ignite()
|
||||
.mount("/api/v1/", routes_with_openapi![
|
||||
v1_open_inquirer_git,
|
||||
v1_open_inquirer_gitea,
|
||||
v1_open_gitlab,
|
||||
v1_open_inquirer_github,
|
||||
v1_open_inquirer_gitlab,
|
||||
v1_ide_state
|
||||
])
|
||||
.mount(
|
||||
"/api/v1/",
|
||||
routes_with_openapi![
|
||||
v1_open_inquirer_git,
|
||||
v1_open_inquirer_gitea,
|
||||
v1_open_gitlab,
|
||||
v1_open_inquirer_github,
|
||||
v1_open_inquirer_gitlab,
|
||||
v1_ide_state
|
||||
],
|
||||
)
|
||||
.manage(exectuor)
|
||||
.mount(
|
||||
"/swagger-ui/",
|
||||
|
||||
Reference in New Issue
Block a user