25.12.0-alpha.0
This commit is contained in:
+8
-16
@@ -1,15 +1,7 @@
|
||||
import express from "express";
|
||||
import * as os from "os";
|
||||
import config from "../config.js";
|
||||
import { NetworkInterfaceDetails } from "types/types";
|
||||
|
||||
// バックエンドルーティング
|
||||
import CommandExecute from "./route/command.js";
|
||||
import ueusePost from "./route/ueuse.js";
|
||||
import WeatherUeuse from "./route/weather.js";
|
||||
import API from "./route/api.js";
|
||||
import Token from "./route/token.js";
|
||||
import Debug from "./route/debug.js";
|
||||
import config from "../config";
|
||||
import { NetworkInterfaceDetails } from "@/types/types";
|
||||
|
||||
export default async function AdminPanel() {
|
||||
// 無効
|
||||
@@ -22,12 +14,12 @@ export default async function AdminPanel() {
|
||||
const port = config.admin.panel.port;
|
||||
|
||||
// ルーティング
|
||||
app.use(ueusePost);
|
||||
app.use(CommandExecute);
|
||||
app.use(WeatherUeuse);
|
||||
app.use(API);
|
||||
app.use(Token);
|
||||
app.use(Debug);
|
||||
app.use((await import("./route/ueuse")).default);
|
||||
app.use((await import("./route/command")).default);
|
||||
app.use((await import("./route/weather")).default);
|
||||
app.use((await import("./route/api")).default);
|
||||
app.use((await import("./route/token")).default);
|
||||
app.use((await import("./route/debug")).default);
|
||||
app.use(express.static("panel/public"));
|
||||
|
||||
app.listen(port, () => {
|
||||
|
||||
Reference in New Issue
Block a user