mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 11:21:33 +01:00
13 lines
280 B
JavaScript
13 lines
280 B
JavaScript
app.factory('ProjectFactory', ['$http', function ($http) {
|
|
var Project = function (project) {
|
|
this.id = project.id;
|
|
this.name = project.name;
|
|
this.alert = project.alert;
|
|
}
|
|
|
|
Project.prototype.getURL = function () {
|
|
return '/project/' + this.id;
|
|
}
|
|
|
|
return Project;
|
|
}]); |