Commit Graph

34 Commits

Author SHA1 Message Date
ppeb
6d99a18256
Incorrect pinfo timestamp 2025-03-23 04:48:13 -05:00
ppeb
044566de49
Rework APIs to use Go error 2025-03-23 00:41:10 -05:00
ppeb
147ea95011
Add pinfo api 2025-03-21 23:52:07 -05:00
ppeb
1bb3db9286
Add json attributes to Motd and Clear 2025-03-21 23:51:33 -05:00
ppeb
aaf73ba784
API: Add list and removal API for hash 2025-03-18 23:33:36 -05:00
ppeb
6a40b5c9ec
Store blob hashes, require on login
Blob hashes are now stored in the database under the `hashes` table.
They are stored internally as a map of packIDs to a map of versions to a
map of regions to the hash.

On login, a pack ID, version, and hash are required or the login attempt
is rejected.

Hashes can be updated using the `/api/hash` endpoint.

The schema has been updated accordingly.
2025-03-10 08:39:19 -05:00
ppeb
41f7fddc4d
Revert "Revert motd, clear, and user action response"
This reverts commit 3144bd7cf8.

The reason this commit had to be made was because certain apis were PR'd
upstream, but were unwanted and thus removed in a separate commit. It
would likely have been better to drop the commits pushed upstream but
it's too late to fix that, so now we have a revert of a revert.
2025-03-05 20:33:20 -06:00
Palapeli
c01f080f2c
API: Handle OPTIONS request method 2025-03-05 06:26:06 -05:00
ppeb
95360023a5
Move custom kick and ban error messages to error.go 2025-03-04 06:59:57 -06:00
ppeb
3144bd7cf8
Revert motd, clear, and user action response 2025-03-03 19:33:41 -06:00
ppeb
ea56689f08
Fix missing ban reason dropped during merge 2025-03-02 23:51:22 -06:00
ppeb
df1c6a83fc
Send kick and ban reasons to players 2025-03-02 23:33:46 -06:00
ppeb
e12944ccab
Remove HEAD support, change sql query name 2025-03-02 23:30:32 -06:00
ppeb
64e007631f
Add /api/clear to drop user from database 2025-03-02 23:30:14 -06:00
ppeb
3099499868
Rename utils.go to user_action_response.go for clarity 2025-03-02 23:30:09 -06:00
ppeb
c099348636
Include User object with responses to some APIs 2025-03-02 23:30:02 -06:00
ppeb
90f38dccca
Move mmss to api/utils.go 2025-03-02 23:29:55 -06:00
ppeb
d1dd5816c2
Rework ban, kick, unban APIs. Add motd API. 2025-03-02 23:29:49 -06:00
ppeb
cfec099bdd
Add IP logging to ban, kick, unban 2025-03-02 23:29:43 -06:00
mkwcat
94c03d5693
Add silent reload feature to GPCM and QR2 2024-05-06 23:58:40 -04:00
mkwcat
467d54b765
QR2: Add create time to /api/groups 2024-02-13 10:55:58 -05:00
mkwcat
fe2d7243c2
QR2/API: Provide Mii info in /api/groups request 2024-02-13 08:28:42 -05:00
mkwcat
89f4044f04
Implement banning and custom error messages 2024-01-10 03:22:17 -05:00
MikeIsAStar
5d477aac18 API: Do not return 'null' when no groups exist 2024-01-07 19:10:55 -05:00
mkwcat
fbde8963db
API: Allow more advanced group filtering 2024-01-05 19:00:09 -05:00
mkwcat
db9eedf684
API: Add Access-Control-Allow-Origin 2024-01-05 03:20:57 -05:00
mkwcat
2c41f46def
API: Add /stats - generic stats endpoint 2024-01-01 23:33:05 -05:00
mkwcat
4e8ad85020
API: Add join order and local player count 2024-01-01 22:59:03 -05:00
mkwcat
adaefd1cbb
API: Include friend code in groups 2023-12-14 13:45:09 -05:00
mkwcat
ad79cb286a
Don't use database for auth tokens 2023-12-14 11:24:45 -05:00
Sketch
fc224859e0 API: Don't panic on error 2023-12-13 13:58:46 -05:00
Sketch
450d0fc979 Correct MIMEType as well as handle no gamename 2023-12-13 13:58:46 -05:00
mkwcat
b1849bb68e
API: More information in groups 2023-12-12 05:03:33 -05:00
mkwcat
53cec11f17
Add /api/groups endpoint 2023-12-11 14:14:36 -05:00