6 lines
168 B
Prolog
6 lines
168 B
Prolog
:- http_handler(root(api/users), users_route, []).
|
|
|
|
% GET /users
|
|
users_route(_Request) :-
|
|
bagof(user(Username), user(Username, _), Users),
|
|
reply_prolog(Users).
|