feature/client-template #2

Merged
homeburger merged 27 commits from feature/client-template into main 2026-03-14 23:10:46 -05:00
4 changed files with 13 additions and 4 deletions
Showing only changes of commit b1865afced - Show all commits

View File

@@ -5,8 +5,8 @@ run-name: "${{ gitea.event.head_commit.message }}: Deploy API"
on:
push:
branches:
- main
#branches:
# - main
paths:
- "api/**"
- ".gitea/workflows/deploy-api.yaml"

3
.gitignore vendored
View File

@@ -2,3 +2,6 @@
# empty for now
# .env # urrp I eated it :33
# this one is for real though
client/.env

View File

@@ -9,8 +9,9 @@ import type { User } from "../models/User.ts";
const API_URL: string = "/users";
const baseUrl: string = import.meta.env.DEV ? import.meta.env.VITE_DEV_API_URL : import.meta.env.VITE_PROD_API_URL; // TODO: overarching api service
const api = axios.create({
baseURL: "http://10.145.164.106:5227/api"
baseURL: baseUrl
});
export const getUsers = () => api.get<User[]>(`${API_URL}`);

View File

@@ -1,4 +1,9 @@
# idk yet
dotnet ./api/test.cs
#dotnet ./api/test.cs
set ASPNETCORE_ENVIRONMENT=Development
dotnet run
npm run dev