Implement the /set endpoint
There's no reason to use sql.begin()
on a single SQL statement, since we're not writing anything to the database.
Implement the /set endpoint
Just checked
> var db=await import("./db.js");
undefined
> await db.default`SELECT enable_reset FROM keys LIMIT 1`;
Result(1) [ { enable_reset: false } ]
>
3a9d172f79
Run prettier
f5d7b1df63
Implement returning unmodifed values if it couldn't be changed
7ccd0f7ff2
By the countapi spec, this is more correct.
Fix issues with the /update endpoint
Fix issues with the /update endpoint
IDK, but there are no production instances yet, so I don't care much
b9e885cf76
Merge pull request 'Merge pull request 'main' (#1) from main into bk85' (#2) from bk85 into main
5d57ffe053
Merge pull request 'main' (#1) from main into bk85
Merge pull request 'main' (#1) from main into bk85
Merge pull request 'main' (#1) from main into bk85
5d57ffe053
Merge pull request 'main' (#1) from main into bk85
835b0e491a
Merge branches 'bk1', 'bk2', 'bk3', 'bk4', 'bk5', 'bk6', 'bk7', 'bk8', 'bk9', 'bk10', 'bk11', 'bk12', 'bk13', 'bk14', 'bk15', 'bk16', 'bk17', 'bk18', 'bk19', 'bk20', 'bk21', 'bk22', 'bk23', 'bk24', 'bk25', 'bk26', 'bk27', 'bk28', 'bk29', 'bk30', 'bk31', 'bk32', 'bk33', 'bk34', 'bk35', 'bk36', 'bk37', 'bk38', 'bk39', 'bk40', 'bk41', 'bk42', 'bk43', 'bk44', 'bk45', 'bk46', 'bk47', 'bk48', 'bk49', 'bk50', 'bk51', 'bk52', 'bk53', 'bk54', 'bk55', 'bk56', 'bk57', 'bk58', 'bk59', 'bk60', 'bk61', 'bk62', 'bk63', 'bk64', 'bk65', 'bk66', 'bk67', 'bk68', 'bk69', 'bk70', 'bk71', 'bk72', 'bk73', 'bk74', 'bk75', 'bk76', 'bk77', 'bk78', 'bk79', 'bk80', 'bk81', 'bk82', 'bk83', 'bk84', 'bk85', 'bk86', 'bk87', 'bk88', 'bk89', 'bk90', 'bk91', 'bk92', 'bk93', 'bk94', 'bk95', 'bk96', 'bk97', 'bk98', 'bk99' and 'bk100'
9514af7257
bk84
422 (Unprocessable Content) feels more accurate than 403 (Forbidden) here.