From 1a7b1f0d2fd82979032c5bd245830256a9986b93 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Thu, 16 Apr 2020 10:55:30 +0200 Subject: [PATCH] Update Git URL --- go.mod | 2 +- main.go | 2 +- main_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 24e85c7..a8fdea8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module codeberg.org/jlelse/goshort +module git.jlel.se/jlelse/GoShort go 1.14 diff --git a/main.go b/main.go index d32dfd5..3ab627d 100644 --- a/main.go +++ b/main.go @@ -82,7 +82,7 @@ func migrateDatabase() { Migrations: []*migrate.Migration{ { Id: "001", - Up: []string{"create table redirect(slug text not null primary key,url text not null,hits integer default 0 not null);insert into redirect (slug, url) values ('source', 'https://codeberg.org/jlelse/GoShort');"}, + Up: []string{"create table redirect(slug text not null primary key,url text not null,hits integer default 0 not null);insert into redirect (slug, url) values ('source', 'https://git.jlel.se/jlelse/GoShort');"}, Down: []string{"drop table redirect;"}, }, }, diff --git a/main_test.go b/main_test.go index bdfcccf..f468f22 100644 --- a/main_test.go +++ b/main_test.go @@ -66,7 +66,7 @@ func TestShortenedUrlHandler(t *testing.T) { w := httptest.NewRecorder() ShortenedUrlHandler(w, req) resp := w.Result() - if resp.Header.Get("Location") != "https://codeberg.org/jlelse/GoShort" { + if resp.Header.Get("Location") != "https://git.jlel.se/jlelse/GoShort" { t.Error() } })