JSON API login 404
Pre-submission Checklist
- [x] I have searched the existing issues and this bug has not been reported yet
- [x] I have tested this issue on the demo site or the latest version
Where did you encounter this bug?
Latest stable version (self-hosted)
Memos Version
v0.25.3
Bug Description
I am unable to log in with password and username with the REST API.
Steps to Reproduce
curl -X POST "https://memos.my.com/api/v1/auth/signin" \
-H "Content-Type: application/json" \
-d ' {"passwordCredentials":{"password":"xxxx","username":"xxxx"}}'
I just got 404 from this. Is the REST API still working? I can't seem to find it in the codebase.
{"code":5,"message":"Not Found","details":[]}
Expected Behavior
Get whatever is written on the doc
Screenshots & Additional Context
No response
Also the delete emoji API is also not working...
I followed the instructions here: https://usememos.com/docs/api/memoservice/DeleteMemoReaction
I am not sure if that is because the documentation is extremely out of date or what.
I encountered the same problem when running in docker. But the API works when I run the backend server locally on its own.
I think it really is an API change? This API is not documented, and the old API was entirely broken: api/v1/auth/sessions/current