mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-24 04:13:32 +00:00
Rearrange assets a bit, fix anything that uses assets folder
This commit is contained in:
1 parent
8351415d15
commit
9c688527ec
12 files changed
+6
-4
No files matched your search
@@ -34,7 +34,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
|
||||
const sizeOf = require("image-size");
|
||||
|
||||
// TODO: Widget style templates need Fosscord branding
|
||||
const source = path.join(__dirname, "..", "..", "..", "..", "assets", "widget", `${style}.png`);
|
||||
const source = path.join(__dirname, "..", "..", "..", "..", "..", "assets", "widget", `${style}.png`);
|
||||
if (!fs.existsSync(source)) {
|
||||
throw new HTTPError("Widget template does not exist.", 400);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user