Skip to content

Commit

Permalink
Merge branch 'oauth' of https://github.com/Divyateja04/geddit into oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
pks03 committed Feb 25, 2024
2 parents 277744a + 88f3682 commit e9e103d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/app/post/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Input } from "@nextui-org/input";
import { Post } from "@/types";
import { useState } from "react";
import { Button } from "@nextui-org/button";
import { siteConfig } from "@/config/site";


export default function CreatePost() {
Expand Down Expand Up @@ -34,7 +35,7 @@ export default function CreatePost() {

<Form
className="flex flex-col gap-3 m-3 w-full mx-auto p-4 rounded-lg shadow-md"
action="http://localhost:5000/posts/create"
action={siteConfig.server_url + "/api/posts/create"}
encType={'application/json'}
onSuccess={async ({ response }) => {
setError(null)
Expand Down
1 change: 1 addition & 0 deletions frontend/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export type SiteConfig = typeof siteConfig;

export const siteConfig = {
name: "Geddit",
server_url: "http://localhost:5000",
description: "Get things done.",
navItems: [
{
Expand Down

0 comments on commit e9e103d

Please sign in to comment.