mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 15:48:26 +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
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |