Description
There's a varnam_remove_word
function, but is not available to use in both CLI and Go handlers. It'll be great if there is this endpoint.
But, this would be problematic for a public instance of varnamd. Which brings me to the authenticated endpoints feature mentioned in #17 : #17 (comment)
A simple "Authentication" header with a token would be fine. The password can be optionally passed to varnamd
as a flag (hashed, plaintext would be a disaster of course).
By adding an auth, the endpoints that would probably require it would be :
- /train
- /remove
OR simply avoid the auth, and implement it under enableInternalApis.
Usecase :
In the offline desktop, I'm adding an option to remove the word, but there's no endpoint to send to.
@athul @joicemjoseph interested to implement this ?