Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dbc60e7f
Commit
dbc60e7f
authored
Aug 08, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add initial email route
parent
a955975c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
app/controllers/admin/emails_controller.rb
app/controllers/admin/emails_controller.rb
+5
-0
config/routes.rb
config/routes.rb
+1
-0
spec/routing/admin_routing_spec.rb
spec/routing/admin_routing_spec.rb
+5
-0
No files found.
app/controllers/admin/emails_controller.rb
0 → 100644
View file @
dbc60e7f
class
Admin::EmailsController
<
Admin
::
ApplicationController
def
index
render
text:
'hello world'
,
layout:
nil
end
end
config/routes.rb
View file @
dbc60e7f
...
...
@@ -86,6 +86,7 @@ Gitlab::Application.routes.draw do
resources
:broadcast_messages
,
only:
[
:index
,
:create
,
:destroy
]
resource
:logs
,
only:
[
:show
]
resource
:background_jobs
,
controller:
'background_jobs'
,
only:
[
:show
]
resources
:emails
,
only:
[
:index
]
resources
:projects
,
constraints:
{
id:
/[a-zA-Z.\/0-9_\-]+/
},
only:
[
:index
,
:show
]
do
member
do
...
...
spec/routing/admin_routing_spec.rb
View file @
dbc60e7f
...
...
@@ -119,3 +119,8 @@ describe Admin::DashboardController, "routing" do
end
end
describe
Admin
::
EmailsController
,
"routing"
do
it
"to #index"
do
get
(
"/admin/emails"
).
should
route_to
(
'admin/emails#index'
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment