Skip to content

Commit

Permalink
App served with root path
Browse files Browse the repository at this point in the history
  • Loading branch information
h00s committed May 14, 2024
1 parent 7865c3f commit fd1bffb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/config/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func Routes() raptor.Routes {
raptor.Route("POST", "", "LinksController", "Create"),
),
),
raptor.Route("GET", "/links", "SPAController", "Index"),
//raptor.Route("GET", "/links", "SPAController", "Index"),
raptor.Route("GET", "/:shortID", "LinksController", "Redirect"),
raptor.Route("GET", "*", "SPAController", "Index"),
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/HeaderContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<FlexContainer>
<h1 class="title pt-16 pb-2 font-extrabold text-center">
<a href="/links">skrati.link</a>
<a href="/">skrati.link</a>
</h1>
<slot />
</FlexContainer>
5 changes: 0 additions & 5 deletions frontend/src/routes/+page.js
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
import { redirect } from '@sveltejs/kit';

export function load() {
redirect(302, '/links');
}
File renamed without changes.
Empty file removed frontend/src/routes/links/+page.js
Empty file.

0 comments on commit fd1bffb

Please sign in to comment.