setup openapi spec build chain

This commit is contained in:
realaravinth
2021-10-08 15:55:53 +05:30
parent 9afb63c738
commit 428d60ebb0
7 changed files with 6080 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ pub fn handle_embedded_file(path: &str) -> HttpResponse {
async fn dist(path: web::Path<String>) -> impl Responder {
handle_embedded_file(&path)
}
const OPEN_API_SPEC: &str = include_str!("../openapi.yaml");
const OPEN_API_SPEC: &str = include_str!("../docs/openapi/dist/openapi.yaml");
#[my_codegen::get(path = "DOCS.spec")]
async fn spec() -> HttpResponse {