Skip to content
Snippets Groups Projects
Commit 7b2724f9 authored by Shrey Patel's avatar Shrey Patel
Browse files

fixed routes for org page and request

parent e672f2c9
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,13 @@ function App() {
element={<AccountInformation token={token} />}
/>
</Route>
<Route path="/createorganization" element={<CreateOrganization />} />
<Route path="/createrequest" element={<CreateRequest />} />
<Route element={<PrivateRoutes token={token} />}>
<Route path="/createorganization" element={<CreateOrganization />} />
</Route>
<Route element={<PrivateRoutes token={token} />}>
<Route path="/createrequest" element={<CreateRequest />} />
</Route>
<Route
path="/listallorganizations"
element={<ListAllOrganizations />}
......
......@@ -34,16 +34,7 @@ export const Navbar = ({ token }) => {
<li>
<NavLink to="/accountinfo">Account Information</NavLink>
</li>
<li>
<NavLink
to="/"
onClick={() => {
sessionStorage.removeItem("token");
window.location.reload(false);
}}>
Sign Out
</NavLink>
</li>
<li>
<NavLink to="/createorganization">Create Organization</NavLink>
</li>
......@@ -55,6 +46,16 @@ export const Navbar = ({ token }) => {
List All Organizations
</NavLink>
</li>
<li>
<NavLink
to="/"
onClick={() => {
sessionStorage.removeItem("token");
window.location.reload(false);
}}>
Sign Out
</NavLink>
</li>
</>
)}
</>
......
......@@ -3,6 +3,6 @@ spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/inventory
spring.datasource.username=root
spring.datasource.password=czarthak
spring.datasource.password=APbmCP70!
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.jpa.show-sql: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment