Umimaso f10df31f5c feat: add widget endpoints
Implemented the four widget related endpoints of the api. Partial user
object being returned as part of the widget.json endpoint [1] is an
intentional choice related to privacy [2].

The widget.json endpoint will require additional changes upon completion
of other work. Member details will need to return extra key/values for
connected users to voice channels. An additional avatar_url value will
hold an unique avatar url for the user + guild, fetched via a CDN
endpoint widget-avatars.

New dependencies `canvas` and `image-size`. Canvas is used to create the
widget.png endpoint image [3]. Image-size is used to set the canvas'
size to match the widget template images.

Use regex in determining if a NO_AUTHORIZATION_ROUTES is hit or not.

[1] https://discord.com/developers/docs/resources/guild#get-guild-widget
[2] https://github.com/discord/discord-api-docs/issues/1287
[3] https://discord.com/developers/docs/resources/guild#get-guild-widget-image

Closes: #9, #110
2021-06-19 14:50:11 +01:00
2021-03-30 15:39:00 +02:00
2021-05-28 18:10:59 +02:00
2021-05-07 20:03:24 +02:00
2021-06-19 14:50:11 +01:00
2021-06-19 14:50:11 +01:00
2021-06-19 14:50:11 +01:00
2021-05-24 20:47:06 +02:00
2021-05-22 19:57:01 -05:00
2021-04-22 23:29:06 +02:00
2021-05-01 16:08:11 +02:00
2021-03-30 15:39:00 +02:00
2021-03-27 21:52:02 +01:00
2021-05-08 12:55:07 +02:00
2021-06-02 19:22:22 +02:00
2021-06-19 14:50:11 +01:00
2021-05-08 23:05:08 +02:00

Fosscord HTTP API Server

About

This repository contains the Fosscord HTTP API Server

Bug Tracker

Project Board

API

We use express for the HTTP Server and lambert-server for route handling and body validation (customized).

Contribution

You should be familiar with:

and the other technologies we use

Getting Started

Clone the Repository:

git clone https://github.com/fosscord/fosscord-api
cd discord-server

Install (dev)dependencies:

npm install
npm install --only=dev

Starting:

npm start

Debugging:

Vscode: The Launch file configuration is in ./vscode/launch.json, so you can just debug the server by pressing F5 or the > Launch Server button

Description
No description provided
Readme 23 MiB
Languages
TypeScript 89.3%
JavaScript 9.3%
HTML 1.1%
Nix 0.2%