mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Refactor global schedules with mobile-responsive UI and backend optimizations (#167)
* ralph: ralph-global-schedules-dashboard completed after 2 iterations * Refactor global schedules with mobile-responsive UI and backend optimizations
This commit is contained in:
1 parent
ba15fb31e4
commit
f18bcbbf3e
10 files changed
+721
-1
No files matched your search
@@ -35,6 +35,15 @@ function parseRunListLimit(value: string | undefined): number {
|
||||
export function createScheduleRoutes(scheduleService: ScheduleService) {
|
||||
const app = new Hono()
|
||||
|
||||
app.get('/all', (c) => {
|
||||
try {
|
||||
const jobs = scheduleService.listAllJobsWithRepos()
|
||||
return c.json({ jobs })
|
||||
} catch (error) {
|
||||
return handleScheduleError(c, error, 'Failed to list all schedules')
|
||||
}
|
||||
})
|
||||
|
||||
app.get('/', (c) => {
|
||||
try {
|
||||
const repoId = parseId(c.req.param('id'), 'repo id')
|
||||
|
||||
Reference in new issue
Block a user