This commit is contained in:
2025-08-07 08:56:49 +09:00
parent d20f630e1b
commit 2b53b8cd3d
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import config from "../../config.js";
Token.use(express.json());
Token.use(express.urlencoded({ extended: true }));
Token.post("/actions/token", async (req, res, next) => {
Token.post("/actions/token", (req, res, next) => {
res.status(501)
.send("GET Only");
});
+2 -2
View File
@@ -3,7 +3,7 @@ const WeatherUeuse = express.Router();
import { weatherNotice } from "../../scripts/weatherNotice.js";
WeatherUeuse.post("/actions/command-execute", (req, res) => {
WeatherUeuse.post("/actions/weather", (req, res) => {
try {
(async () => {
await weatherNotice();
@@ -17,7 +17,7 @@ WeatherUeuse.post("/actions/command-execute", (req, res) => {
}
});
WeatherUeuse.get("/actions/command-execute", (req, res) => {
WeatherUeuse.get("/actions/weather", (req, res) => {
res.status(501)
.send("POST Only");
});