feat(auth): POST /v1/logout and admin logout revoke refresh session. Refs EventHub/EventHubBack#69
This commit is contained in:
@@ -89,6 +89,7 @@ start_http() ->
|
||||
{"/v1/reset-password", handler_reset_password, []},
|
||||
{"/v1/login", handler_login, []},
|
||||
{"/v1/refresh", handler_refresh, []},
|
||||
{"/v1/logout", handler_logout, []},
|
||||
{"/v1/user/me", handler_user_me, []},
|
||||
{"/v1/user/bookings", handler_user_bookings, []},
|
||||
{"/v1/user/booking-requests", handler_user_booking_requests, []},
|
||||
@@ -147,6 +148,7 @@ start_admin_http() ->
|
||||
{"/v1/admin/nodes/metrics", admin_handler_node_metrics, []},
|
||||
{"/v1/admin/login", admin_handler_login, []},
|
||||
{"/v1/admin/refresh", admin_handler_refresh, []},
|
||||
{"/v1/admin/logout", admin_handler_logout, []},
|
||||
% ================== ПОЛЬЗОВАТЕЛИ ==================
|
||||
{"/v1/admin/users", admin_handler_users, []},
|
||||
{"/v1/admin/users/stats", admin_handler_user_stats, []},
|
||||
|
||||
Reference in New Issue
Block a user