add functionality and refactor the code
This commit is contained in:
18
app/components/Pterodactyl/index.tsx
Normal file
18
app/components/Pterodactyl/index.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import filesModule from "./files";
|
||||
import helpersModule from "./helpers";
|
||||
|
||||
class Pterodactyl {
|
||||
server_id: string;
|
||||
api_key: string;
|
||||
files: any;
|
||||
helpers: any;
|
||||
|
||||
constructor(server_id: string, api_key: string) {
|
||||
this.server_id = server_id;
|
||||
this.api_key = api_key;
|
||||
this.files = filesModule(this);
|
||||
this.helpers = helpersModule(this);
|
||||
}
|
||||
}
|
||||
|
||||
export default Pterodactyl;
|
||||
Reference in New Issue
Block a user