功能:完善用户与项目管理框架
This commit is contained in:
@@ -6,6 +6,8 @@ import { bootstrap } from "./bootstrap.mjs";
|
||||
import { handleAuthApi } from "./auth.mjs";
|
||||
import { handleGithubApi } from "./github.mjs";
|
||||
import { handleSettingsApi } from "./settings.mjs";
|
||||
import { handleUsersApi } from "./users.mjs";
|
||||
import { handleProjectsApi } from "./projects.mjs";
|
||||
|
||||
const isProduction = process.env.NODE_ENV === "production";
|
||||
const port = Number(process.env.PORT || 5173);
|
||||
@@ -64,6 +66,14 @@ const server = createServer(async (request, response) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (await handleUsersApi(request, response, url)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (await handleProjectsApi(request, response, url)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (await handleGithubApi(request, response, url)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user