Skip to content

Commit

Permalink
feat: 静态资源转发
Browse files Browse the repository at this point in the history
  • Loading branch information
shoaky009 committed Jan 14, 2024
1 parent 21672cb commit c4b4cde
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.github.shoaky.sourcedownloader.api

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable

@Controller
class SpaController {

@GetMapping("/{path:[^.]*}")
fun forward(@PathVariable path: String): String {
return "forward:/"
}
}

0 comments on commit c4b4cde

Please sign in to comment.