1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-13 06:02:39 +01:00

added dev server

This commit is contained in:
Flam3rboy 2021-04-25 23:35:19 +02:00
parent 5dd97905ab
commit c2d696d66e
4 changed files with 1006 additions and 11 deletions

1007
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,8 @@
"start": "npm run build:util && npm run build && node dist/start", "start": "npm run build:util && npm run build && node dist/start",
"build": "tsc -b .", "build": "tsc -b .",
"build:util": "tsc -b ./node_modules/@fosscord/server-util/", "build:util": "tsc -b ./node_modules/@fosscord/server-util/",
"postinstall": "patch-package" "postinstall": "patch-package",
"dev": "tsnd --respawn src/"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -41,7 +42,7 @@
"i18next-http-middleware": "^3.1.0", "i18next-http-middleware": "^3.1.0",
"i18next-node-fs-backend": "^2.1.3", "i18next-node-fs-backend": "^2.1.3",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
"lambert-server": "^1.0.10", "lambert-server": "^1.1.9",
"missing-native-js-functions": "^1.2.6", "missing-native-js-functions": "^1.2.6",
"mongodb": "^3.6.4", "mongodb": "^3.6.4",
"mongoose": "^5.12.3", "mongoose": "^5.12.3",
@ -63,6 +64,7 @@
"jest": "^26.6.3", "jest": "^26.6.3",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"ts-node-dev": "^1.1.6",
"typescript": "^4.1.2" "typescript": "^4.1.2"
} }
} }

View File

@ -34,5 +34,5 @@ router.post("/", check({ messages: [String] }), async (req, res) => {
data: { ids: messages, channel_id, guild_id: channel.guild_id }, data: { ids: messages, channel_id, guild_id: channel.guild_id },
} as MessageDeleteBulkEvent); } as MessageDeleteBulkEvent);
res.status(204).send(); res.sendStatus(204);
}); });

View File

@ -49,7 +49,7 @@ router.delete("/:id", async (req: Request, res: Response) => {
guild_id: guild_id, guild_id: guild_id,
} as GuildMemberRemoveEvent); } as GuildMemberRemoveEvent);
return res.status(204).send(); return res.sendStatus(204);
}); });
export default router; export default router;