Skip to content

Commit

Permalink
Add semantic query collection type for backend URL derivation (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jul 27, 2021
1 parent d708149 commit 994d67e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/src/semantic-search/collection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { extend } from 'lodash';

import { apiRoot } from 'config.json';
import Collection from '../core/collection';

import SemanticQuery from './model';

export default class SemanticQueries extends Collection<SemanticQuery> {}

extend(SemanticQueries.prototype, {
url: `${apiRoot}query/`,
model: SemanticQuery,
});

0 comments on commit 994d67e

Please sign in to comment.