Skip to content

Commit 81516ad

Browse files
committed
fixing incorrect json route method
1 parent 4f942e6 commit 81516ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/LocalAuthentication/Routing/Routes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public func mainAuthenticationRoutes() -> [[String: Any]] {
2626
routes.append(["method":"get", "uri":"/api/v1/session", "handler":LocalAuthJSONHandlers.session])
2727
routes.append(["method":"get", "uri":"/api/v1/logout", "handler":LocalAuthJSONHandlers.logout])
2828
routes.append(["method":"post", "uri":"/api/v1/register", "handler":LocalAuthJSONHandlers.register])
29-
routes.append(["method":"login", "uri":"/api/v1/login", "handler":LocalAuthJSONHandlers.login])
29+
routes.append(["method":"post", "uri":"/api/v1/login", "handler":LocalAuthJSONHandlers.login])
3030

3131

3232

0 commit comments

Comments
 (0)