new laptop setup

This commit is contained in:
2022-12-24 16:34:17 +01:00
parent 5b95621d04
commit 31b47e892d
55 changed files with 789 additions and 5 deletions
Regular → Executable
View File
+9
View File
@@ -0,0 +1,9 @@
use actix_web::{HttpRequest, HttpResponse};
use crate::auth::jwt::JwtToken;
pub async fn get(req: HttpRequest) -> HttpResponse {
let token: JwtToken = JwtToken::decode_from_request(req).unwrap();
todo!();
}
Regular → Executable
+15
View File
@@ -1 +1,16 @@
use actix_web::web;
use crate::views::path::Path;
pub mod feeds;
mod get;
pub fn feed_factory(app: &mut web::ServiceConfig) {
let base_path: Path = Path {
prefix: String::from("/article"),
backend: true,
};
app.route(
&base_path.define(String::from("/get")),
web::get().to(get::get),
);
}