prolog-point-of-sale/routes/users.pl

7 lines
168 B
Perl
Raw Permalink Normal View History

2019-11-03 01:05:33 +00:00
:- http_handler(root(api/users), users_route, []).
2019-11-01 00:48:35 +00:00
% GET /users
users_route(_Request) :-
bagof(user(Username), user(Username, _), Users),
2019-11-03 01:05:33 +00:00
reply_prolog(Users).