mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-30 10:25:40 +02:00
Add vite
Changes according to Vite defaults: - Move index.html to root - Replace `%PUBLIC_URL%` with plain `/`
This commit is contained in:
parent
951c90763a
commit
e21327cec5
6 changed files with 527 additions and 14542 deletions
server
|
@ -219,7 +219,7 @@ func TestServer_StaticSites(t *testing.T) {
|
|||
|
||||
rr = request(t, s, "GET", "/mytopic", "", nil)
|
||||
require.Equal(t, 200, rr.Code)
|
||||
require.Contains(t, rr.Body.String(), `<meta name="robots" content="noindex, nofollow"/>`)
|
||||
require.Contains(t, rr.Body.String(), `<meta name="robots" content="noindex, nofollow" />`)
|
||||
|
||||
rr = request(t, s, "GET", "/docs", "", nil)
|
||||
require.Equal(t, 301, rr.Code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue