From 7d6e7d46cdc5fb10e5cbdc0feca2a176c7f3fbd8 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 21 Apr 2024 10:29:46 -0700 Subject: [PATCH] small helper file updates --- Justfile | 6 ++++-- rest.http | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 264ab7f..ebe4c2f 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,7 @@ +# Brings the database up to the current migration migrate-up: - GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations up + GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations up +# Rolls back one migration at a time migrate-down: - GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations down \ No newline at end of file + GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations down \ No newline at end of file diff --git a/rest.http b/rest.http index bdc77a3..26416c5 100644 --- a/rest.http +++ b/rest.http @@ -16,6 +16,15 @@ Content-Type: application/x-www-form-urlencoded password=lol +### Try to refresh the token +POST http://localhost:1323/api/v1/auth/refreshToken +Content-Type: application/json +Authorization: Bearer + +{ + "username": "test", + "refreshToken": "" +} ### Add Scope to test user POST http://localhost:1323/api/v1/auth/scopes/add