{"id":19917251,"url":"https://github.com/athos/duct.module.web.thin-api","last_synced_at":"2026-05-11T01:08:37.314Z","repository":{"id":136592352,"uuid":"150439666","full_name":"athos/duct.module.web.thin-api","owner":"athos","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-26T14:37:03.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T23:35:28.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-26T14:27:45.000Z","updated_at":"2018-09-26T14:37:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"7378322c-e79e-4642-8692-6376b552f8e0","html_url":"https://github.com/athos/duct.module.web.thin-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athos%2Fduct.module.web.thin-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athos%2Fduct.module.web.thin-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athos%2Fduct.module.web.thin-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athos%2Fduct.module.web.thin-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athos","download_url":"https://codeload.github.com/athos/duct.module.web.thin-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241347752,"owners_count":19948147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T21:49:14.761Z","updated_at":"2026-05-11T01:08:37.280Z","avatar_url":"https://github.com/athos.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duct.module.web.thin-api\n\n**Note**: `duct.module.web.thin-api` is currently still under development.\n\nA [Duct][] module that adds a web server and useful middleware to a\nconfiguration. This is the basis of all web applications built with\nDuct.\n\n[duct]: https://github.com/duct-framework/duct\n\n## Installation\n\nTo install, add the following to your project `:dependencies`:\n\n    [duct/module.web \"0.6.3\"]\n\n## Usage\n\nTo add this module to your configuration, add a reference to\n`:duct.module.web/api` if you want to develop a web service:\n\n```edn\n{:duct.core/project-ns foo\n :duct.module.web/api  {}}\n```\n\nOr `:duct.module.web/site` if you want to develop a user-facing web\napplication:\n\n```edn\n{:duct.core/project-ns foo\n :duct.module.web/site {}}\n```\n\nOr `:duct.module/web` if you want the bare-bones approach and want to\nhandle most things yourself.\n\nNote that the `:duct.core/project-ns` key must also be set, to allow\nthe module to find the right resources.\n\nBy default, the module uses the `:duct.server.http/jetty` key for the\nwebserver, as supplied by the [server.http.jetty][] library. However,\nif a key deriving from `:duct.server/http` already exists in the\nconfiguration, the module will use that instead.\n\nSimilarly, the module includes the `:duct.router/cascading` key for\nrouting. This is a simple router that takes an ordered vector of\nhandlers, and will return the first non-nil response for a given\nrequest.\n\nFor example:\n\n```edn\n{:duct.router/cascading [#ig/ref :foo.endpoint/example1\n                         #ig/ref :foo.endpoint/example2]\n :foo.endpoint/example1 {}\n :foo.endpoint/example2 {}}\n```\n\nIf a key deriving from `:duct/router` exists in the configuration\nalready, then that is used instead.\n\n[server.http.jetty]: https://github.com/duct-framework/server.http.jetty\n\n## License\n\nCopyright © 2017-2018 James Reeves, Shogo Ohta\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathos%2Fduct.module.web.thin-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathos%2Fduct.module.web.thin-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathos%2Fduct.module.web.thin-api/lists"}