Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit e8cab642 authored by Scallss's avatar Scallss
Browse files

Create Notification service struct skeleton.

parent d0c998e2
No related branches found
No related tags found
No related merge requests found
pub mod product;
pub mod notification;
use rocket::fairing::AdHoc;
......@@ -6,5 +7,6 @@ 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("/notification", routes![])
});
}
use rocket::response::status::Created;
use rocket::serde::json::Json;
use bambangshop::Result;
use crate::model::subscriber::Subscriber;
use crate::service::notification::NotificationService;
pub mod product;
pub mod notification;
\ No newline at end of file
use std::thread;
use bambangshop::{Result, compose_error_response};
use rocket::http::Status;
use crate::model::notification::Notification;
use crate::model::product::Product;
use crate::model::subscriber::Subscriber;
use crate::repository::subscriber::SubscriberRepository;
pub struct NotificationService;
impl NotificationService {
}
\ No newline at end of file
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