Skip to content

Commit

Permalink
add top.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tttol committed Jan 30, 2024
1 parent 1a9afdd commit 020fb84
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package io.github.tttol.mrls.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import lombok.RequiredArgsConstructor;

@Controller
@RequestMapping("/")
@RequiredArgsConstructor
public class TopController {
@GetMapping
public String top() {
return "top";
}
}
2 changes: 2 additions & 0 deletions app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
server:
port: 8081
app:
gitlab:
host: host
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/resources/templates/top.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>MRLS</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2250%%22 style=%22dominant-baseline:central;text-anchor:middle;font-size:90px;%22>😎</text></svg>">
</head>
<body>
<h1>Hello MRLS</h1>
</body>
</html>

0 comments on commit 020fb84

Please sign in to comment.