v8.0.2
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user