mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 16:20:44 +01:00
79a05b389f
- [wip] ws support
12 lines
250 B
JavaScript
12 lines
250 B
JavaScript
app.factory('ProjectFactory', ['$http', function ($http) {
|
|
var Project = function (project) {
|
|
this.id = project.id;
|
|
this.name = project.name;
|
|
}
|
|
|
|
Project.prototype.getURL = function () {
|
|
return '/project/' + this.id;
|
|
}
|
|
|
|
return Project;
|
|
}]); |