import Presenter from "swarm.app"
module Hello include Presenter
@self.route('GET', '/:whom')
greet(req, args, query)
hdrs = { }
hdrs['Content-Type'] = 'text/plain'
mesg = "Hello %{args.whom or 'World'}!"
return { 200, hdrs, { mesg } }
end
end
Hello.run()
-
Notifications
You must be signed in to change notification settings - Fork 0
richardhundt/swarm
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
web micro framework in shine
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published