mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 20:52:42 +01:00
🎨 restructure
This commit is contained in:
parent
9200fb546c
commit
e5ed599b48
@ -1,10 +1,11 @@
|
|||||||
//TODO: this is a template for a generic route
|
//TODO: this is a template for a generic route
|
||||||
|
|
||||||
import { Router, Request, Response } from "express";
|
import { Router, Request, Response } from "express";
|
||||||
|
import { route } from "@fosscord/api";
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
||||||
router.get("/", async (req: Request, res: Response) => {
|
router.get("/",route({}), async (req: Request, res: Response) => {
|
||||||
res.send({});
|
res.json({});
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
@ -3,7 +3,7 @@ const WebSocket = require("ws");
|
|||||||
const Constants = require("./dist/util/Constants");
|
const Constants = require("./dist/util/Constants");
|
||||||
|
|
||||||
// const ws = new WebSocket("ws://127.0.0.1:8080");
|
// const ws = new WebSocket("ws://127.0.0.1:8080");
|
||||||
const ws = new WebSocket("wss://gateway.discord.gg");
|
const ws = new WebSocket("wss://dev.fosscord.com");
|
||||||
|
|
||||||
ws.on("open", () => {
|
ws.on("open", () => {
|
||||||
// ws.send(JSON.stringify({ req_type: "new_auth" }));
|
// ws.send(JSON.stringify({ req_type: "new_auth" }));
|
||||||
|
Loading…
Reference in New Issue
Block a user