File
Edit
View
Go
Run
Terminal
Help
Explorer
src
components
utils
CategoryRestController.kt
HealthRestController.kt
OfferRestController.kt
Category.ts
CategoryRestController.kt
HealthRestController.kt
Category.ts
package com.example.category import org.springframework.web.bind.annotation.* import org.springframework.http.ResponseEntity @RestController @RequestMapping("/api/categories") class CategoryRestController( private val categoryService: CategoryService ) { @GetMapping fun getAllCategories(): List<CategoryDto> { return categoryService.getAllCategories() } @GetMapping("/{id}") fun getCategory(@PathVariable id: Long): ResponseEntity<CategoryDto> { val category = categoryService.getCategory(id) return if (category != null) { ResponseEntity.ok(category) } else { ResponseEntity.notFound().build() } } }
.map
Chat
Composer
Cursor
Hello! I'm your AI assistant. How can I help you with your code today?
main
UTF-8
0 errors, 2 warnings
Ln 15, Col 42
AI Active
Ready
COMMIT
Commit
History
CHANGES FILES
CategoryRestController.kt
HealthRestController.kt
OfferRestController.kt
Category.ts
Unsynced commits: 3
Sync
Pass existing package progress indicator
Martin Clymer
Add test to ProgressIndicatorTest
Sarah Johnson
Refactor tests to be more functional
Alex Chen
Fix scroll jumps during editing draft
Noble Kale