Skip to content

Commit

Permalink
Merge pull request #1550 from archivesspace/ANW-617
Browse files Browse the repository at this point in the history
WIP ANW-617 Latest updates
  • Loading branch information
lmcglohon committed Apr 25, 2019
2 parents cf32519 + b0c2601 commit 9d99ed5
Show file tree
Hide file tree
Showing 50 changed files with 2,406 additions and 2,698 deletions.
18 changes: 1 addition & 17 deletions backend/app/controllers/slug.rb
Expand Up @@ -11,23 +11,7 @@ class ArchivesSpaceService < Sinatra::Base
do
id, table, repo_id = SlugHelpers.get_id_from_slug(params['slug'],
params['controller'],
params['action'],
nil)

json_response({:id => id, :table => table, :repo_id => repo_id})
end

# same as above, with the repo_slug param
Endpoint.get('/slug_with_repo')
.description("Find the record given the slug and repository slug, return id, repo_id, and table name")
.params('slug', 'controller', 'action', 'repo_slug')
.permissions([])
.returns([200, ""]) \
do
id, table, repo_id = SlugHelpers.get_id_from_slug(params['slug'],
params['controller'],
params['action'],
params['repo_slug'])
params['action'])

json_response({:id => id, :table => table, :repo_id => repo_id})
end
Expand Down

0 comments on commit 9d99ed5

Please sign in to comment.