Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 74200930 authored by Christian Raphael Heryanto's avatar Christian Raphael Heryanto
Browse files

Create Notification service struct skeleton.

parent 35c3192f
No related branches found
No related tags found
No related merge requests found
pub mod notification;
pub mod product;
use rocket::fairing::AdHoc;
......@@ -5,6 +6,15 @@ use rocket::fairing::AdHoc;
pub fn route_stage() -> AdHoc {
return AdHoc::on_ignite("Initializing controller routes...", |rocket| async {
rocket
.mount("/product", routes![product::create, product::list, product::read, product::delete])
.mount(
"/product",
routes![
product::create,
product::list,
product::read,
product::delete
],
)
.mount("/notification", routes![])
});
}
use rocket::response::status::Created;
use rocket::serde::json::Json;
use crate::model::subscriber::Subscriber;
use crate::service::notification::NotificationService;
use bambangshop::Result;
pub mod notification;
pub mod product;
use std::thread;
use crate::model::notification::Notification;
use crate::model::product::Product;
use crate::model::subscriber::Subscriber;
use crate::repository::subscriber::SubscriberRepository;
use ::bambangshop::{compose_error_response, Result};
use rocket::http::Status;
pub struct NotificationService;
impl NotificationService {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment