new laptop setup
This commit is contained in:
Regular → Executable
Executable
+9
@@ -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
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user