Skip to content

Commit 4b4a2a3

Browse files
authored
Create antimatter.service.js
1 parent 7204394 commit 4b4a2a3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

services/antimatter.service.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// antimatter.service.js
2+
import { antimatterUtils } from '../utils/antimatter';
3+
4+
const antimatterService = {
5+
async createAntimatter(type) {
6+
const antimatter = antimatterUtils.createAntimatter(type);
7+
// Save antimatter to database
8+
return antimatter;
9+
},
10+
async annihilateAntimatter(antimatterId) {
11+
const antimatter = await getAntimatterFromDatabase(antimatterId);
12+
const annihilationResult = antimatterUtils.annihilateAntimatter(antimatter);
13+
return annihilationResult;
14+
},
15+
};
16+
17+
export default antimatterService;

0 commit comments

Comments
 (0)