mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-28 05:05:19 +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
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |