25.12.0-alpha.0

This commit is contained in:
2025-11-30 17:44:44 +09:00
parent a53f8f3023
commit 0ee2728590
45 changed files with 220 additions and 280 deletions
+8 -16
View File
@@ -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, () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const API = express.Router();
import config from "../../config.js";
import config from "../../config";
API.use(express.json());
API.use(express.urlencoded({ extended: true }));
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const CommandExecute = express.Router();
import Commands from "../../scripts/commands/main.js";
import Commands from "@/scripts/commands/main";
CommandExecute.post("/actions/command-execute", (req, res) => {
try {
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const Debug = express.Router();
import config from "../../config.js";
import config from "../../config";
Debug.post("/actions/debug", (req, res, next) => {
res.status(501)
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const EventdayUeuse = express.Router();
import EventDays from "../../scripts/eventday.js";
import EventDays from "@/scripts/eventday";
EventdayUeuse.post("/actions/eventday", (req, res) => {
try {
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const Token = express.Router();
import config from "../../config.js";
import config from "../../config";
Token.post("/actions/token", (req, res, next) => {
res.status(501)
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const ueusePost = express.Router();
import config from "../../config.js";
import config from "../../config";
ueusePost.use(express.json());
ueusePost.use(express.urlencoded({ extended: true }));
+1 -1
View File
@@ -1,7 +1,7 @@
import express from "express";
const WeatherUeuse = express.Router();
import { weatherNotice } from "../../scripts/weatherNotice.js";
import { weatherNotice } from "@/scripts/weatherNotice";
WeatherUeuse.post("/actions/weather", (req, res) => {
try {