mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-04 08:03:37 +01:00
26 lines
425 B
JavaScript
26 lines
425 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.search')
|
|
.factory('SearchService', SearchService);
|
|
|
|
SearchService.$inject = ['$http', '$log'];
|
|
|
|
function SearchService($http, $log) {
|
|
|
|
return search;
|
|
|
|
function search(keywords) {
|
|
return $http
|
|
.get('/api/search',{
|
|
params: {
|
|
'q': keywords
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |