From 303485230c5a8fdc68f5eeced5a758c79b4278d4 Mon Sep 17 00:00:00 2001 From: sudoskys Date: Wed, 7 Feb 2024 18:45:51 +0800 Subject: [PATCH] :sparkles: feat(server): Add user login endpoint Added a new endpoint for user login in the server.py file. The login endpoint allows users to log in and returns the result. If any error occurs during the login process, an exception is logged and a 500 status code is returned. The new endpoint is defined as a POST request at `/user/login`. The request body expects a `Login` object. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8be76a6..d3c14c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "novelai-python" -version = "0.1.9" +version = "0.2.0" description = "Novelai Python Binding With Pydantic" authors = [ { name = "sudoskys", email = "coldlando@hotmail.com" },