-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(server): server, server-core, server-plugins #65
Conversation
58e9f05
to
55c9082
Compare
55c9082
to
a631d1f
Compare
a631d1f
to
ee2953c
Compare
ee2953c
to
66518cb
Compare
66518cb
to
406444e
Compare
406444e
to
42237f9
Compare
42237f9
to
80be208
Compare
80be208
to
b52a773
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove artifacts from server/uploads/
coreServer/src/core/index.ts
Outdated
public registerPluginRoutesX( | ||
pluginName: string, | ||
path: string, | ||
router: Router | ||
) { | ||
this.routeHandlers.push({ pluginName, path, router }); | ||
} | ||
|
||
public registerPluginX(plugin: AbstractPlugin) { | ||
plugin.initialize(); | ||
|
||
if (typeof plugin.registerRoutes === "function") { | ||
plugin.registerRoutes(this); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
coreServer/src/core/index.ts
Outdated
|
||
this.app = express(); | ||
|
||
this.app.use(cors()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to expose api for router
// Define register routes method | ||
public registerRoutes(core: Core) { | ||
console.log("Not implemented", core); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review...
coreServer/src/types/type.ts
Outdated
import { Router } from "express"; | ||
|
||
export enum ActionTypes { | ||
"INIT_APP" = "INIT_APP", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean...
server/.eslintrc.js
Outdated
@@ -0,0 +1,4 @@ | |||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to move to example
65b285e
to
4410c6e
Compare
4410c6e
to
b5743c2
Compare
b5743c2
to
8859495
Compare
No description provided.