fix
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
pub mod filters;
|
||||
pub mod models;
|
||||
pub mod serializers;
|
||||
|
||||
use che_tauri::{AppModule, ModuleContext};
|
||||
|
||||
pub fn module() -> ContractappModule {
|
||||
ContractappModule
|
||||
}
|
||||
|
||||
pub struct ContractappModule;
|
||||
|
||||
impl AppModule for ContractappModule {
|
||||
fn name(&self) -> &'static str {
|
||||
"contractapp"
|
||||
}
|
||||
|
||||
fn init(&self, ctx: &mut ModuleContext) {
|
||||
ctx.resource::<models::Contract>(
|
||||
"contract",
|
||||
serializers::contractapp_serializer(),
|
||||
filters::contractapp_filterset(),
|
||||
);
|
||||
ctx.resource::<models::Counterparty>(
|
||||
"counterparty",
|
||||
serializers::counterparty_serializer(),
|
||||
filters::counterparty_filterset(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user