I also wonder about pagination. I've never needed to do it with APIs I've written, and I don't know at what sort of scale you generally start to care. TypeSpec has stuff built-in for paginating,…
The DB has ban reason and unban time. As I said in the previous comment, I'll be looking into how to incorporate the latter with the correct visibility rules.
This would also suggest that /users/{platform}/{platformID} should instead be /platforms/{platform}/users/{platformID}. Am I reading that right? Do you agree?
ban is the reason they're banned, not the unban time. We'd only want to show the latter to the user themselves and to moderators. TypeSpec has some stuff to express that, but I have to read more…
Going to wait on #18 to do this, just to avoid any chance of a merge conflict.
wrt #16, currently using "emote list." If we want "emote set" instead, we should decide that quickly.
If we specify it in mise and don't specify it in go.mod, then the versions are free to disagree. Saying toolchain local
should be effectively saying "use the version in mise."
If we want to specify the Go version with mise, should we also specify toolchain local
in go.mod? (I would take that as a reason not to specify it with mise, personally.)
acceptable alternative to using flags: SERVE_ADDR = cmp.Or(os.Getenv("LIGMOTES_API"), ":8080")
Flags are supported everywhere. I can't use your env thing for local testing on my Windows PC, because the way you set environment variables in PowerShell is a totally different syntax.
There…
The default value of the flag is the value for dev. Other environments have scripts that launch them.