init
This commit is contained in:
5
app/controllers/application_controller.rb
Normal file
5
app/controllers/application_controller.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
# Prevent CSRF attacks by raising an exception.
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
end
|
2
app/controllers/children_controller.rb
Normal file
2
app/controllers/children_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class ChildrenController < ApplicationController
|
||||
end
|
10
app/controllers/docs_controller.rb
Normal file
10
app/controllers/docs_controller.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class DocsController < ApplicationController
|
||||
def index
|
||||
doc = {
|
||||
name: "sms-pager-api",
|
||||
documentation: "https://bitbucket.org/markamoser/sms-pager-api"
|
||||
}.to_json
|
||||
|
||||
render json: doc
|
||||
end
|
||||
end
|
2
app/controllers/pages_controller.rb
Normal file
2
app/controllers/pages_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class PagesController < ApplicationController
|
||||
end
|
6
app/controllers/parents_controller.rb
Normal file
6
app/controllers/parents_controller.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class ParentsController < ApplicationController
|
||||
def index
|
||||
@parents = Person.just_parents
|
||||
respond_with @parents
|
||||
end
|
||||
end
|
2
app/controllers/staff_controller.rb
Normal file
2
app/controllers/staff_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class StaffController < ApplicationController
|
||||
end
|
2
app/controllers/users_controller.rb
Normal file
2
app/controllers/users_controller.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class UsersController < ApplicationController
|
||||
end
|
Reference in New Issue
Block a user