Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL Resource Scheduler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jeff Sturek
UNL Resource Scheduler
Commits
187faacf
Commit
187faacf
authored
8 years ago
by
Tyler Lemburg
Browse files
Options
Downloads
Patches
Plain Diff
images
parent
44c7fe21
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app.rb
+0
-9
0 additions, 9 deletions
app.rb
models/service_space_request.rb
+2
-1
2 additions, 1 deletion
models/service_space_request.rb
routes/images.rb
+21
-0
21 additions, 0 deletions
routes/images.rb
with
23 additions
and
10 deletions
app.rb
+
0
−
9
View file @
187faacf
...
...
@@ -132,13 +132,4 @@ get '/' do
}
end
get
'/images/:event_id/?'
do
event
=
Event
.
find_by
(
:id
=>
params
[
:event_id
])
if
event
.
nil?
||
event
.
imagedata
.
nil?
raise
Sinatra
::
NotFound
end
return
event
.
imagedata
end
Dir
.
glob
(
"
#{
ROOT
}
/routes/*.rb"
)
{
|
file
|
require
file
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
models/service_space_request.rb
+
2
−
1
View file @
187faacf
require
'active_record'
require
'models/user'
class
ServiceSpaceRequest
<
ActiveRecord
::
Base
belongs_to
:user
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
routes/images.rb
0 → 100644
+
21
−
0
View file @
187faacf
require
'sinatra'
require
'models/event'
require
'models/service_space'
get
'/images/:event_id/?'
do
event
=
Event
.
find_by
(
:id
=>
params
[
:event_id
])
if
event
.
nil?
||
event
.
imagedata
.
nil?
raise
Sinatra
::
NotFound
end
return
event
.
imagedata
end
get
'/service_space/images/:space_id/?'
do
space
=
ServiceSpace
.
find_by
(
:id
=>
params
[
:space_id
])
if
space
.
nil?
||
space
.
imagedata
.
nil?
raise
Sinatra
::
NotFound
end
return
space
.
imagedata
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment