Did you know ... | Search Documentation: |
Pack app -- README.md |
pack_install(app).
Make sure you have already installed SWI-prolog with:
brew install swi-prolog --with-libarchive
:- use_module(library(app)). :- route('/', index). :- route('/users', users). index(_Request):- header('Content-Type', 'text/plain'), body('Hello World!'). users(_Request):- header('Content-Type', 'text/plain'), body('Users!').
MIT.