Change /analytics to /api/analytics
This commit is contained in:
parent
4ef5664510
commit
13303e4e24
2
index.js
2
index.js
|
@ -593,7 +593,7 @@ app.get("/discord", (req, res) => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/analytics", (req, res) => {
|
app.get("/api/analytics", (req, res) => {
|
||||||
db.all("SELECT * FROM analytics", (err, total) => {
|
db.all("SELECT * FROM analytics", (err, total) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('Error getting analytics:', err);
|
console.error('Error getting analytics:', err);
|
||||||
|
|
Loading…
Reference in a new issue