Commit 553aeed8 authored by John E. Vincent's avatar John E. Vincent

some quick stubs before bed

parent 81bb62dc
......@@ -52,6 +52,14 @@ module Noah
erb :'500'
end
# Placeholder for admin functions
namespace "/ark" do
end
# Placeholder for watchers
namespace "/w" do
end
namespace "/h" do
get '/:hostname/:servicename/?' do |hostname, servicename|
......
......@@ -16,3 +16,9 @@ class Watcher < Ohm::Model #NYI
assert_unique [:client, :endpoint, :event, :action]
end
end
class Watchers
def self.all(options = {})
options.empty? ? Watcher.all.sort : Watcher.find(options).sort
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment